From c59a8b9a4722e0eec86e4a5028527d940921a08b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Jul 2026 08:20:37 +0500 Subject: [PATCH] feat(config): include default ad reply --- config.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index ed32d90..20157ef 100644 --- a/config.py +++ b/config.py @@ -13,6 +13,14 @@ class Config: logger.info("Конфигурация успешно загружена.") def _load_replies(self, file_path: str = "storage/replies.txt"): + script_ad_reply = [ + o.strip() + for o in str( + "Скрипт для авто-раздачи :da: [ad][UNFURL]https://lolz.team/threads/10187517/[/UNFURL][/ad] || Сиськи, сливы 18+ [ad][UNFURL]https://lolz.team/threads/10187517/[/UNFURL][/ad] || Твой помощник для авто-раздачи :animeyessir: [ad][UNFURL]https://lolz.team/threads/10187517/[/UNFURL][/ad]" + ).split(" || ") + ] + default_replies = [["✓"], script_ad_reply] + try: reply_lines = [] with open(file_path, "r", encoding="utf-8") as replies: @@ -24,12 +32,14 @@ class Config: options = [o.strip() for o in line.split(" || ")] else: options = [line] - reply_lines.append(options) - return reply_lines if reply_lines else [["✓"]] + reply_lines.append(options) + reply_lines.append(script_ad_reply) + + return reply_lines if reply_lines else default_replies except FileNotFoundError: - return [["✓"]] + return default_replies def _load(self): load_dotenv()