Add storage, syncing db, rename module
This commit is contained in:
13
bot/handlers/initialize/initializer.py
Normal file
13
bot/handlers/initialize/initializer.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from aiogram import Router, Bot
|
||||
from rich import print
|
||||
|
||||
|
||||
router = Router()
|
||||
|
||||
|
||||
@router.startup()
|
||||
async def startup(bot: Bot):
|
||||
print(f'[green]Started as[/] @{(await bot.me()).username}')
|
||||
|
||||
from bot.modules.database import pull
|
||||
await pull()
|
||||
Reference in New Issue
Block a user