From 039f85363096b3b0bd43ddd3c9017e1cded3abd0 Mon Sep 17 00:00:00 2001 From: brucewzj99 Date: Sun, 24 Dec 2023 14:01:48 +0800 Subject: [PATCH] add files strucutre, remove old update code --- bot/handler/__init__.py | 0 bot/handler/addincome_command.py | 0 bot/handler/config_command.py | 0 bot/handler/entry_command.py | 0 bot/handler/gettransaction_command.py | 0 bot/handler/quickadd_command.py | 0 bot/updates.py | 13 ------------- push_updates.py | 10 ---------- 8 files changed, 23 deletions(-) create mode 100644 bot/handler/__init__.py create mode 100644 bot/handler/addincome_command.py create mode 100644 bot/handler/config_command.py create mode 100644 bot/handler/entry_command.py create mode 100644 bot/handler/gettransaction_command.py create mode 100644 bot/handler/quickadd_command.py delete mode 100644 bot/updates.py delete mode 100644 push_updates.py diff --git a/bot/handler/__init__.py b/bot/handler/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/handler/addincome_command.py b/bot/handler/addincome_command.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/handler/config_command.py b/bot/handler/config_command.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/handler/entry_command.py b/bot/handler/entry_command.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/handler/gettransaction_command.py b/bot/handler/gettransaction_command.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/handler/quickadd_command.py b/bot/handler/quickadd_command.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/updates.py b/bot/updates.py deleted file mode 100644 index ba5c451..0000000 --- a/bot/updates.py +++ /dev/null @@ -1,13 +0,0 @@ -from telegram import Bot -import os -import bot.firestore_service as fs - -TOKEN = os.environ.get("BOT_TOKEN") -bot = Bot(token=TOKEN) - - -def send_new_feature_message(new_feature_message): - users = fs.get_all_user_id() - for user_id in users: - bot.send_message(chat_id=user_id, text=new_feature_message) - print("Message has been pushed to all users") diff --git a/push_updates.py b/push_updates.py deleted file mode 100644 index fbc6aae..0000000 --- a/push_updates.py +++ /dev/null @@ -1,10 +0,0 @@ -import os -from telegram import Bot -import bot.updates as up - -TOKEN = os.environ.get("BOT_TOKEN") -bot = Bot(token=TOKEN) - -# msg = "Msg here to push" -# up.send_new_feature_message(msg) -