~cytrogen/evi-run

ref: b3270b987d9055738907d5ad4b06ae2f8519a383 evi-run/bot/commands.py -rw-r--r-- 873 bytes
b3270b98 — Bendy Update CI workflow to use Python 3.10+ instead of 3.9 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())