Skip to content

Commit

Permalink
modified generate/bot-generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Asker Kakhramanov committed Feb 25, 2024
1 parent f501c2d commit 1de4ea8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generate/bot-generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import telebot
import os
from prometheus_client import start_http_server, Counter, Gauge
import logging

logging.basicConfig(level=logging.INFO, filename='app.log', filemode='w',
format='%(name)s - %(levelname)s - %(message)s')

bot=telebot.TeleBot(os.environ.get('generate_bot'))

Expand Down Expand Up @@ -76,4 +80,6 @@ def generate_pin(message):

if __name__ == "__main__":
start_http_server(62865)
logging.info('Start http server')
logging.info('Start bot polling')
bot.polling() # Запуск бота

0 comments on commit 1de4ea8

Please sign in to comment.