add moderator command

This commit is contained in:
2024-12-22 23:10:48 +07:00
parent 7402b64b58
commit a642b5de39
3 changed files with 264 additions and 5 deletions
+8 -2
View File
@@ -4,9 +4,10 @@ from aiogram import Bot, Dispatcher
from aiogram.types import BotCommand
from bot.bot import bot, storage
from bot.commands.help import router as help_router
from bot.commands.start import router as start_router
from bot.commands.admin import router as admin_router
from bot.commands.help import router as help_router
from bot.commands.moderator import router as moderator_router
from bot.commands.start import router as start_router
from bot.handlers.messages import router as user_router
@@ -20,6 +21,10 @@ async def set_commands(commands_bot: Bot):
commands = [
BotCommand(command="start", description="Начать работу с ботом"),
BotCommand(command="help", description="Получить справку"),
BotCommand(command="mute", description="Мутит пользователя"),
BotCommand(command="unmute", description="Размучивает пользователя"),
BotCommand(command="ban", description="Банит пользователя"),
BotCommand(command="unban", description="Разбанивает пользователя"),
]
await commands_bot.set_my_commands(commands)
@@ -35,6 +40,7 @@ async def main():
dp.include_router(admin_router)
dp.include_router(start_router)
dp.include_router(help_router)
dp.include_router(moderator_router)
dp.include_router(user_router)
await set_commands(bot)