add moderator command
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user