1.4 Добавлен модуль погоды
This commit is contained in:
@@ -6,6 +6,7 @@ from aiogram import Router
|
||||
from .start_cmd import start_cmd
|
||||
from .start_time_cmd import start_time_cmd
|
||||
from .help_cmd import help_cmd
|
||||
from .weather_cmd import weather_cmd
|
||||
|
||||
# Объявление роутера и настройка экспорта модулей
|
||||
__all__ = ("router",)
|
||||
@@ -16,6 +17,7 @@ router = Router(name="user_cmd_router")
|
||||
router.include_routers(
|
||||
help_cmd.router,
|
||||
start_time_cmd.router,
|
||||
weather_cmd.router,
|
||||
)
|
||||
|
||||
router.include_routers(start_cmd.router)
|
||||
|
||||
16
BotCode/routers/commands/user_cmd/weather_cmd.py
Normal file
16
BotCode/routers/commands/user_cmd/weather_cmd.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# BotCode/routers/commands/user_cmd/start_time_cmd.py
|
||||
|
||||
from aiogram import types
|
||||
from BotLibrary import CommandHandler
|
||||
from BotCode.utils import get_weather
|
||||
|
||||
__all__ = ("weather_cmd",)
|
||||
|
||||
weather_cmd = CommandHandler(
|
||||
name="weather",
|
||||
description="Погода",
|
||||
keywords=["weather", "gjujlf", "цуферук", "погода"],
|
||||
callbackdata=["keywords"],
|
||||
media="command",
|
||||
func=[get_weather],
|
||||
)
|
||||
Reference in New Issue
Block a user