- Добавление сообщения о поддержке проекта
This commit is contained in:
@@ -185,7 +185,8 @@ class DiscordClient:
|
|||||||
text_data = site_api.get_news_content(topic_id, self.content_processor)
|
text_data = site_api.get_news_content(topic_id, self.content_processor)
|
||||||
|
|
||||||
if text_data:
|
if text_data:
|
||||||
content = f"----------------------------------------------------------\n### {topic_title}\t\n" + text_data + "\n@here"
|
support_text = "Поддержать проект удобным для вас способом можно на сайте нашего проекта.\nhttps://linux-gaming.ru/t/podderzhat-proekt/123\n\n"
|
||||||
|
content = support_text + f"----------------------------------------------------------\n### {topic_title}\t\n" + text_data + "\n@here"
|
||||||
await self.send_message(channel, content)
|
await self.send_message(channel, content)
|
||||||
time.sleep(1.0)
|
time.sleep(1.0)
|
||||||
else:
|
else:
|
||||||
|
@@ -137,7 +137,8 @@ class SiteAPI:
|
|||||||
post_text = content_processor.create_script_content(script_ver, next_version, changelog_response)
|
post_text = content_processor.create_script_content(script_ver, next_version, changelog_response)
|
||||||
|
|
||||||
if post_text:
|
if post_text:
|
||||||
site_text = f"[center][img]/uploads/default/original/1X/5cfa59077a5275971401fab0114e56f3ffdd0ec4.png[/img][/center]\n{post_text}"
|
support_text = "Поддержать проект удобным для вас способом можно на сайте нашего проекта.\nhttps://linux-gaming.ru/t/podderzhat-proekt/123\n\n"
|
||||||
|
site_text = f"[center][img]/uploads/default/original/1X/5cfa59077a5275971401fab0114e56f3ffdd0ec4.png[/img][/center]\n{support_text}{post_text}"
|
||||||
|
|
||||||
post_data = {
|
post_data = {
|
||||||
"title": f"Кумулятивное обновление скриптов {script_ver}",
|
"title": f"Кумулятивное обновление скриптов {script_ver}",
|
||||||
|
@@ -279,7 +279,8 @@ class TelegramNewsClient:
|
|||||||
text_data = site_api.get_news_content(topic_id, self.content_processor)
|
text_data = site_api.get_news_content(topic_id, self.content_processor)
|
||||||
|
|
||||||
if text_data:
|
if text_data:
|
||||||
content = f"### {topic_title}\t\n" + text_data + "\n"
|
support_text = "Поддержать проект удобным для вас способом можно на сайте нашего проекта.\nhttps://linux-gaming.ru/t/podderzhat-proekt/123\n\n"
|
||||||
|
content = support_text + f"### {topic_title}\t\n" + text_data + "\n"
|
||||||
content = self.content_processor.format_for_telegram(content)
|
content = self.content_processor.format_for_telegram(content)
|
||||||
|
|
||||||
await self.send_message(
|
await self.send_message(
|
||||||
|
@@ -176,7 +176,8 @@ class VKClient:
|
|||||||
text_data = site_api.get_news_content(topic_id, self.content_processor)
|
text_data = site_api.get_news_content(topic_id, self.content_processor)
|
||||||
|
|
||||||
if text_data:
|
if text_data:
|
||||||
content = f"{topic_title}\t\n" + text_data + "\n"
|
support_text = "Поддержать проект удобным для вас способом можно на сайте нашего проекта.\nhttps://linux-gaming.ru/t/podderzhat-proekt/123\n\n"
|
||||||
|
content = support_text + f"{topic_title}\t\n" + text_data + "\n"
|
||||||
|
|
||||||
# Извлекаем ссылки для прикрепления
|
# Извлекаем ссылки для прикрепления
|
||||||
links = self.content_processor.extract_links(content)
|
links = self.content_processor.extract_links(content)
|
||||||
|
Reference in New Issue
Block a user