python_bot/bot.py

28 lines
499 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-16 22:16:21 +10:00
import handlers
2022-12-10 02:15:32 +10:00
2022-12-16 22:16:21 +10:00
logging.basicConfig(level=logging.DEBUG)
2022-12-10 02:15:32 +10:00
2023-02-06 22:02:53 +10:00
logging.basicConfig(
level=logging.DEBUG,
handlers=[graypy.GELFUDPHandler('localhost', 12201)]
2023-02-06 22:02:53 +10:00
)
# pipisa.register_handlers_pipisa(dp)
# time_new_year.register_handlers_time(dp)
# sendalarm.register_handlers_test(dp)
# start_help.register_handlers_StartHelp(dp)
2022-10-18 19:17:36 +10:00
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)