python_bot/bot.py
Pavel_Duron 41c4b7c1c4
All checks were successful
continuous-integration/drone/push Build is passing
откатываем изменения
2022-12-13 16:42:19 +10:00

38 lines
543 B
Python

import logging
import graypy
from aiogram import executor
from create_bot import dp
from handlers import pipisa, time_new_year, start_help
from othersq import sendnot
logging.basicConfig(
level = logging.DEBUG,
handlers = [ graypy.GELFUDPHandler('localhost', 12201) ]
)
pipisa.register_handlers_pipisa(dp)
time_new_year.register_handlers_time(dp)
start_help.register_handlers_StartHelp(dp)
sendnot.register_handlers_sendnotal(dp)
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)