Add make and config for formatting

This commit is contained in:
Zakhar Izmaylov
2024-11-10 11:02:15 +03:00
parent 6f5aa1e3f4
commit e524e439b1
23 changed files with 110 additions and 204 deletions
+6 -6
View File
@@ -2,12 +2,6 @@ from aiogram import Bot, Dispatcher, Router
from aiogram.fsm.storage.memory import MemoryStorage
from config import API_TOKEN, FREEKASSA_ENABLE, YOOKASSA_ENABLE
bot = Bot(token=API_TOKEN)
storage = MemoryStorage()
dp = Dispatcher(bot=bot, storage=storage)
router = Router()
from handlers import commands, notifications, profile, start
from handlers.admin import admin, admin_panel, user_editor
from handlers.keys import key_management, keys
@@ -15,6 +9,12 @@ from handlers.payment import freekassa_pay, yookassa_pay
from middlewares.admin import AdminMiddleware
from middlewares.logging import UserActivityMiddleware
bot = Bot(token=API_TOKEN)
storage = MemoryStorage()
dp = Dispatcher(bot=bot, storage=storage)
router = Router()
dp.include_router(admin.router)
dp.include_router(admin_panel.router)
dp.include_router(user_editor.router)