mirror of
https://github.com/Redume/StarBoard.git
synced 2025-04-07 04:05:28 +01:00
chore: Split the code into files
This commit is contained in:
parent
61c2f4c355
commit
414afd966a
1 changed files with 3 additions and 5 deletions
8
main.py
8
main.py
|
@ -3,15 +3,13 @@ from aiogram import Bot, Dispatcher
|
||||||
import asyncio
|
import asyncio
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from events import join_chat, reactions
|
from bot import bot
|
||||||
|
from routers import setup_routers
|
||||||
|
|
||||||
config = yaml.safe_load(open('config.yaml'))
|
config = yaml.safe_load(open('config.yaml'))
|
||||||
|
|
||||||
dp = Dispatcher()
|
dp = Dispatcher()
|
||||||
bot = Bot(config['token'])
|
setup_routers(dp)
|
||||||
|
|
||||||
dp.include_router(router=reactions.router)
|
|
||||||
dp.include_router(router=join_chat.router)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue