forked from Pavel_Durov/python_bot
добавил новую функию рассылки для админа/изменил регистрацию хендлеров
This commit is contained in:
19
bot.py
19
bot.py
@@ -4,12 +4,12 @@ import graypy
|
||||
from aiogram import executor
|
||||
|
||||
from create_bot import dp
|
||||
from handlers import pipisa, time_new_year, start_help
|
||||
from othersq import sendnot
|
||||
|
||||
from handlers import pipisa, time_new_year, sendalarm, start_help
|
||||
import handlers
|
||||
|
||||
|
||||
|
||||
# logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
|
||||
logging.basicConfig(
|
||||
@@ -17,15 +17,10 @@ logging.basicConfig(
|
||||
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)
|
||||
|
||||
# pipisa.register_handlers_pipisa(dp)
|
||||
# time_new_year.register_handlers_time(dp)
|
||||
# sendalarm.register_handlers_test(dp)
|
||||
# start_help.register_handlers_StartHelp(dp)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user