python_bot_v2/bot.py

29 lines
534 B
Python
Raw Normal View History

2022-10-18 19:17:36 +10:00
import logging
2022-12-10 02:02:59 +10:00
import graypy
2022-12-05 17:22:23 +10:00
from aiogram import executor
2022-12-09 19:20:50 +10:00
2022-12-10 02:02:59 +10:00
from create_bot import dp
2022-12-06 22:20:38 +10:00
from handlers import pipisa, time_new_year, start_help
2022-12-09 19:20:50 +10:00
from othersq import sendnot
2022-12-10 02:15:32 +10:00
2022-12-10 02:20:22 +10:00
logging.basicConfig(
level = logging.DEBUG,
handlers = [ graypy.GELFUDPHandler('localhost', 12201) ]
)
2022-11-12 20:36:08 +10:00
2022-12-09 19:20:50 +10:00
2022-12-05 17:22:23 +10:00
pipisa.register_handlers_pipisa(dp)
time_new_year.register_handlers_time(dp)
start_help.register_handlers_StartHelp(dp)
2022-12-09 19:20:50 +10:00
sendnot.register_handlers_sendnotal(dp)
2022-10-18 19:17:36 +10:00
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)
2022-12-04 15:45:15 +10:00