From cabbbc2a5df3070b2b25f86b859a2f3e8d1e6e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sun, 26 May 2024 22:54:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20Discord=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news-bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/news-bot.py b/news-bot.py index a49a9cd..28dcbf2 100755 --- a/news-bot.py +++ b/news-bot.py @@ -332,7 +332,7 @@ def check_discord_public(): list_for_public = [] for topic_id, topic_title in list_titles_and_ids: - if topic_title not in discord_messages and topic_id > 693: + if topic_title not in discord_messages and topic_id > 698: list_for_public.append((topic_id, topic_title)) if not list_for_public: @@ -349,7 +349,7 @@ def check_discord_public(): for topic_id, topic_title in reversed(list_for_public): text_data = news_content(topic_id) if text_data: - content = f"----------------------------------------------------------\n### {topic_title}\t\n" + text_data + "\n" + content = f"----------------------------------------------------------\n### {topic_title}\t\n" + text_data + "\n" + "@here" # Разбиваем содержимое на части по 4000 символов for i in range(0, len(content), 2000): await channel.send(content[i:i+2000]) @@ -435,7 +435,7 @@ def check_vk_posts(): logging.info(f"Новостей для публикации в ВК нет") else: for topic_id, topic_title in reversed(list_for_public): - if topic_id > 693: + if topic_id > 698: logging.info(f"Новости для публикации в ВК: {list_for_public}") text_data = news_content(topic_id) if text_data: