Skip to content

Commit b672ed8

Browse files
committed
feat(start.py): added /about and /help commands
1 parent 524f576 commit b672ed8

1 file changed

Lines changed: 32 additions & 9 deletions

File tree

cogs/start.py

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
11
import cog
22

3+
34
class Handler(cog.Cog):
4-
def __init__(self, bot: cog.Bot):
5-
super().__init__(bot)
6-
7-
@cog.regMessage(cog.F.text == "/start")
8-
async def command(self, message: cog.Message):
9-
await message.answer("""Welcome to the Fast Sticker Bot!
10-
11-
Use /help to see available commands.
5+
def __init__(self, bot: cog.Bot):
6+
super().__init__(bot)
7+
8+
@cog.regMessage(cog.F.text == "/start")
9+
async def startcommand(self, message: cog.Message):
10+
await message.answer("""Welcome to the Fast Sticker Bot!
11+
12+
Use /help to see available commands
13+
Use /about to see info about this bot
1214
Or /new_pack to quickly create a new sticker pack!""")
1315

16+
@cog.regMessage(cog.F.text == "/about")
17+
async def aboutcommand(self, message: cog.Message):
18+
await message.answer("""About Fast Sticker Bot!
19+
20+
This bot created for simplier stickerpack creation using: already existing stickers, gifs, and media from your gallery for simple sticker creation.
21+
This bot will convert your media to needed format for telegram to save it in your stickerpack.
22+
23+
<a href="https://github.com/okiscape/faststicker-bot">Sources</a>""")
24+
25+
@cog.regMessage(cog.F.text == "/help")
26+
async def helpcommand(self, message: cog.Message):
27+
await message.answer("""My commands:
28+
29+
/new_pack - create new pack
30+
/del_pack - delete your existing pack
31+
/my_packs - see your packs
32+
/add_sticker - start adding stickers process
33+
- /copy_emoji - toggles emoji copying from existing stickers
34+
/about - see info about this bot and sources""")
35+
36+
1437
def setup(bot: cog.Bot):
15-
Handler(bot=bot).register()
38+
Handler(bot=bot).register()

0 commit comments

Comments
 (0)