forked from Pavel_Durov/python_bot
Metrics added
This commit is contained in:
3
bot.py
3
bot.py
@@ -4,6 +4,7 @@ from create_bot import dp
|
||||
import handlers
|
||||
import json, logging
|
||||
from global_conf import CONFIG
|
||||
from prometheus_client import start_http_server
|
||||
|
||||
|
||||
|
||||
@@ -44,7 +45,7 @@ logging.getLogger("aiogram").addFilter(filter_grammar_messages)
|
||||
|
||||
if __name__ == '__main__':
|
||||
#print(CONFIG)
|
||||
|
||||
start_http_server(1337)
|
||||
logging.info('Бот в строю.')
|
||||
executor.start_polling(dp, skip_updates=True)
|
||||
logging.info('Всем пока.')
|
||||
|
||||
Reference in New Issue
Block a user