~cytrogen/evi-run

ref: 2126525f0d329b7dc1d677fa1c5115335e668ad8 evi-run/bot/commands.py -rw-r--r-- 873 bytes
2126525f — Bendy Fix undefined name error in config.py 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from aiogram import Bot
from aiogram.types import BotCommand, BotCommandScopeDefault


async def set_commands(bot: Bot):
    commands = [
        BotCommand(command='start', description='General information'),
        BotCommand(command='new', description='Start a new chat'),
        BotCommand(command='save', description='Save the chat in memory'),
        BotCommand(command='delete', description='Clear the agent’s memory'),
        BotCommand(command='balance', description='Balance in the bot'),
        BotCommand(command='settings', description='Settings'),
        BotCommand(command='wallet', description='Agent’s wallet for trading'),
        BotCommand(command='help', description='Help'),
        BotCommand(command='knowledge', description='Add knowledge to the agent’s memory'),
    ]

    await bot.set_my_commands(commands, BotCommandScopeDefault())