diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..17c4853 --- /dev/null +++ b/bot.py @@ -0,0 +1,5 @@ +from aiogram import Bot +import yaml + +config = yaml.safe_load(open('config.yaml')) +bot = Bot(config['token']) \ No newline at end of file diff --git a/routers.py b/routers.py new file mode 100644 index 0000000..ac3836d --- /dev/null +++ b/routers.py @@ -0,0 +1,8 @@ +from aiogram import Dispatcher +from events import join_chat, reactions +from commands import set_channel + +def setup_routers(dp: Dispatcher): + dp.include_router(reactions.router) + dp.include_router(join_chat.router) + dp.include_router(set_channel.router) \ No newline at end of file