From 786302d3cb03f871ddb263d8818059d5d291299b Mon Sep 17 00:00:00 2001 From: lulzette Date: Wed, 14 Dec 2022 21:49:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=20=D1=81=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F,=20=D1=83=D0=B2?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=D1=87=D0=B8=D0=BB=20=D0=BF=D0=B5=D1=80=D0=B8?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=BE=D0=BF=D1=80=D0=BE=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 2fd6000..acd60b8 100644 --- a/main.py +++ b/main.py @@ -9,8 +9,6 @@ import os import sys import telebot -import main - streamer = config_python.streamer app_id = config_python.appid app_secret = config_python.appsecret @@ -27,7 +25,9 @@ def stream_message_worker(data: dict): stream_title = data['title'] stream_viewers = str(data['viewer_count']) # Готовим сообщение - message = streamer + " стримит " + game_name + " Title: " + stream_title + " Зрителей: " + stream_viewers + message = stream_title + '\n' + \ + "Игра: " + game_name + '\n' + \ + "Зрителей: " + stream_viewers log.info(message) # Если файл с айди существует, читаем его и редактируем сообщение из него if os.path.exists('msgid'): @@ -130,4 +130,4 @@ if __name__ == '__main__': while True: check_alive() - time.sleep(180) + time.sleep(300)