File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
![ GitHub stars] ( https://img.shields.io/github/stars/switchcollab/Switch-Bots-Python-Library )
6
6
![ GitHub Forks] ( https://img.shields.io/github/forks/switchcollab/Switch-Bots-Python-Library )
7
- ![ Version] ( https://img.shields.io/badge/version-1.4.44 -green.svg )
7
+ ![ Version] ( https://img.shields.io/badge/version-1.4.55 -green.svg )
8
8
![ PyPI - Downloads] ( https://img.shields.io/pypi/dm/swibots )
9
9
10
10
# SwiBots: Python Library for Switch App
@@ -53,17 +53,15 @@ Let's create a simple echo bot to get you started quickly. Follow these steps:
53
53
54
54
``` python
55
55
from swibots import (
56
- BotApp ,
56
+ Client ,
57
57
BotContext,
58
58
MessageEvent
59
59
)
60
60
61
61
TOKEN = " MY SUPER SECRET TOKEN"
62
62
63
63
# Initialize the app and register commands
64
- app = BotApp(
65
- TOKEN , " A cool bot with annotations and everything you could possibly want :)"
66
- )
64
+ app = Client(TOKEN )
67
65
68
66
@app.on_message ()
69
67
async def message_handler (ctx : BotContext[MessageEvent]):
Original file line number Diff line number Diff line change 16
16
17
17
setup (
18
18
name = "swibots" ,
19
- version = "1.4.51 " ,
19
+ version = "1.4.55 " ,
20
20
packages = find_packages (exclude = ["samples" , "bots_impl" , "docs" ]),
21
21
long_description = long_description ,
22
22
long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments