From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.100]) by gnuweeb.org (Postfix) with ESMTPSA id EC3A280D11; Sun, 11 Sep 2022 10:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1662892424; bh=7bRlH9ZnAGk7WgzdhRSXSDX0b0PjhVGmkQtR6E9ZCWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gH8i+x/IW+/I31bTi1rm/tZSRkfqCyLDoDg0BAuGd7iiqTPp7y5gVNoj2dBNH0m9u ITx8xvm3vsSe2a/2niJn2GroMJW1j6pGIV1zv/sYkiYP3Xqk9TCkSPTsE8xn7eycBo sluHL2lLIyTJcabo2iHTOyNX5Vp4pVMs56H3wKR55BrSHTYURjB4Z++rsXdoVuk8r9 35PJtJp4Djyw5m2PVWE//jgcf/svoYlTABM+0OXo8BUW9coaq68p/GUquDhUgG8jme 89R6hAaStv5gcxriuCw/Jk8d5oUwynVna0zyW+AnpELosVA/W138FjSNDciHiQSzo8 GjbJdRZ9qkrlw== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [RFC PATCH v1 01/17] [telegram] Move the Telegram bot source code Date: Sun, 11 Sep 2022 17:33:07 +0700 Message-Id: <20220911103323.1949-2-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220911103323.1949-1-kiizuha@gnuweeb.org> References: <20220911103323.1949-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Move them into their own directory because there is another platform bot in the future, so it's better to split them. Signed-off-by: Muhammad Rizki --- .gitignore | 3 ++- daemon/{ => telegram}/.env.example | 0 daemon/{ => telegram}/config.py.example | 0 daemon/{ => telegram}/db.sql | 0 daemon/{ => telegram}/packages/__init__.py | 0 daemon/{ => telegram}/packages/client.py | 0 daemon/{ => telegram}/packages/decorator.py | 0 daemon/{ => telegram}/packages/plugins/callbacks/del_atom.py | 0 daemon/{ => telegram}/packages/plugins/callbacks/del_chat.py | 0 daemon/{ => telegram}/packages/plugins/commands/debugger.py | 0 daemon/{ => telegram}/packages/plugins/commands/manage_atom.py | 0 .../packages/plugins/commands/manage_broadcast.py | 0 daemon/{ => telegram}/packages/plugins/commands/scrape.py | 0 daemon/{ => telegram}/requirements.txt | 0 daemon/{ => telegram}/run.py | 0 daemon/{ => telegram}/scraper/__init__.py | 0 daemon/{ => telegram}/scraper/bot.py | 0 daemon/{ => telegram}/scraper/db.py | 0 daemon/{ => telegram}/scraper/scraper.py | 0 daemon/{ => telegram}/scraper/utils.py | 0 daemon/{ => telegram}/storage/.gitignore | 0 21 files changed, 2 insertions(+), 1 deletion(-) rename daemon/{ => telegram}/.env.example (100%) rename daemon/{ => telegram}/config.py.example (100%) rename daemon/{ => telegram}/db.sql (100%) rename daemon/{ => telegram}/packages/__init__.py (100%) rename daemon/{ => telegram}/packages/client.py (100%) rename daemon/{ => telegram}/packages/decorator.py (100%) rename daemon/{ => telegram}/packages/plugins/callbacks/del_atom.py (100%) rename daemon/{ => telegram}/packages/plugins/callbacks/del_chat.py (100%) rename daemon/{ => telegram}/packages/plugins/commands/debugger.py (100%) rename daemon/{ => telegram}/packages/plugins/commands/manage_atom.py (100%) rename daemon/{ => telegram}/packages/plugins/commands/manage_broadcast.py (100%) rename daemon/{ => telegram}/packages/plugins/commands/scrape.py (100%) rename daemon/{ => telegram}/requirements.txt (100%) rename daemon/{ => telegram}/run.py (100%) rename daemon/{ => telegram}/scraper/__init__.py (100%) rename daemon/{ => telegram}/scraper/bot.py (100%) rename daemon/{ => telegram}/scraper/db.py (100%) rename daemon/{ => telegram}/scraper/scraper.py (100%) rename daemon/{ => telegram}/scraper/utils.py (100%) rename daemon/{ => telegram}/storage/.gitignore (100%) diff --git a/.gitignore b/.gitignore index 4de282d..ffa782c 100644 --- a/.gitignore +++ b/.gitignore @@ -140,4 +140,5 @@ data.json *.patch # configuration file -daemon/config.py +daemon/telegram/config.py +daemon/dscord/config.py diff --git a/daemon/.env.example b/daemon/telegram/.env.example similarity index 100% rename from daemon/.env.example rename to daemon/telegram/.env.example diff --git a/daemon/config.py.example b/daemon/telegram/config.py.example similarity index 100% rename from daemon/config.py.example rename to daemon/telegram/config.py.example diff --git a/daemon/db.sql b/daemon/telegram/db.sql similarity index 100% rename from daemon/db.sql rename to daemon/telegram/db.sql diff --git a/daemon/packages/__init__.py b/daemon/telegram/packages/__init__.py similarity index 100% rename from daemon/packages/__init__.py rename to daemon/telegram/packages/__init__.py diff --git a/daemon/packages/client.py b/daemon/telegram/packages/client.py similarity index 100% rename from daemon/packages/client.py rename to daemon/telegram/packages/client.py diff --git a/daemon/packages/decorator.py b/daemon/telegram/packages/decorator.py similarity index 100% rename from daemon/packages/decorator.py rename to daemon/telegram/packages/decorator.py diff --git a/daemon/packages/plugins/callbacks/del_atom.py b/daemon/telegram/packages/plugins/callbacks/del_atom.py similarity index 100% rename from daemon/packages/plugins/callbacks/del_atom.py rename to daemon/telegram/packages/plugins/callbacks/del_atom.py diff --git a/daemon/packages/plugins/callbacks/del_chat.py b/daemon/telegram/packages/plugins/callbacks/del_chat.py similarity index 100% rename from daemon/packages/plugins/callbacks/del_chat.py rename to daemon/telegram/packages/plugins/callbacks/del_chat.py diff --git a/daemon/packages/plugins/commands/debugger.py b/daemon/telegram/packages/plugins/commands/debugger.py similarity index 100% rename from daemon/packages/plugins/commands/debugger.py rename to daemon/telegram/packages/plugins/commands/debugger.py diff --git a/daemon/packages/plugins/commands/manage_atom.py b/daemon/telegram/packages/plugins/commands/manage_atom.py similarity index 100% rename from daemon/packages/plugins/commands/manage_atom.py rename to daemon/telegram/packages/plugins/commands/manage_atom.py diff --git a/daemon/packages/plugins/commands/manage_broadcast.py b/daemon/telegram/packages/plugins/commands/manage_broadcast.py similarity index 100% rename from daemon/packages/plugins/commands/manage_broadcast.py rename to daemon/telegram/packages/plugins/commands/manage_broadcast.py diff --git a/daemon/packages/plugins/commands/scrape.py b/daemon/telegram/packages/plugins/commands/scrape.py similarity index 100% rename from daemon/packages/plugins/commands/scrape.py rename to daemon/telegram/packages/plugins/commands/scrape.py diff --git a/daemon/requirements.txt b/daemon/telegram/requirements.txt similarity index 100% rename from daemon/requirements.txt rename to daemon/telegram/requirements.txt diff --git a/daemon/run.py b/daemon/telegram/run.py similarity index 100% rename from daemon/run.py rename to daemon/telegram/run.py diff --git a/daemon/scraper/__init__.py b/daemon/telegram/scraper/__init__.py similarity index 100% rename from daemon/scraper/__init__.py rename to daemon/telegram/scraper/__init__.py diff --git a/daemon/scraper/bot.py b/daemon/telegram/scraper/bot.py similarity index 100% rename from daemon/scraper/bot.py rename to daemon/telegram/scraper/bot.py diff --git a/daemon/scraper/db.py b/daemon/telegram/scraper/db.py similarity index 100% rename from daemon/scraper/db.py rename to daemon/telegram/scraper/db.py diff --git a/daemon/scraper/scraper.py b/daemon/telegram/scraper/scraper.py similarity index 100% rename from daemon/scraper/scraper.py rename to daemon/telegram/scraper/scraper.py diff --git a/daemon/scraper/utils.py b/daemon/telegram/scraper/utils.py similarity index 100% rename from daemon/scraper/utils.py rename to daemon/telegram/scraper/utils.py diff --git a/daemon/storage/.gitignore b/daemon/telegram/storage/.gitignore similarity index 100% rename from daemon/storage/.gitignore rename to daemon/telegram/storage/.gitignore -- Muhammad Rizki