~cytrogen/evi-run

ref: 34569b4505cb1a2a4b1c5117d221a85580032272 evi-run/bot/commands.py -rw-r--r-- 873 bytes
34569b45 — Bendy chore: update README and agents_tools/agents_.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())