feat(*): init

This commit is contained in:
h
2026-01-20 21:38:01 +01:00
commit b9703da2fc
57 changed files with 3246 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import asyncio
import contextlib
from rich import traceback
from utils.logging import logger, setup_logging
setup_logging()
async def runner() -> None:
from . import handlers # noqa: PLC0415
from .common import bot, dp # noqa: PLC0415
dp.include_routers(handlers.router)
await bot.delete_webhook(drop_pending_updates=True)
await dp.start_polling(bot)
def plugins() -> None:
traceback.install(show_locals=True)
def main() -> None:
plugins()
logger.info("Starting...")
with contextlib.suppress(KeyboardInterrupt):
asyncio.run(runner())
logger.info("[red]Stopped.[/]")