mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
Added singleton config and changed module structure
This commit is contained in:
8
main.py
8
main.py
@@ -7,12 +7,7 @@ from os.path import dirname, join
|
||||
import aioschedule as schedule
|
||||
import dotenv
|
||||
from aiogram import Bot, Dispatcher, F, types
|
||||
from aiogram.filters import Command, CommandStart
|
||||
from aiogram.fsm.context import FSMContext
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
from aiogram.utils.keyboard import InlineKeyboardBuilder
|
||||
|
||||
from handlers.admin_commands import Admin_commands
|
||||
from aiogram.filters import CommandStart
|
||||
|
||||
dotenv.load_dotenv()
|
||||
|
||||
@@ -35,7 +30,6 @@ for filename in os.listdir(handlers_dir):
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
# dp.include_router(Admin_commands(bot)())
|
||||
await dp.start_polling(bot, skip_updates=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user