From 4e6cb3f28f2416204416d9514a237cbb02587ca5 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 12 Jun 2022 22:34:02 +0000 Subject: [PATCH] add update.py --- update.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 update.py diff --git a/update.py b/update.py new file mode 100644 index 0000000..0cc00d6 --- /dev/null +++ b/update.py @@ -0,0 +1,15 @@ +import os +from rss import RssReader +from update_manager import UpdateManager +from database import Database +from telegram import Notifier + +token = os.getenv('TELEGRAM_TOKEN') +db_path = os.getenv('DATABASE_PATH') + +db = Database(db_path) +notifier = Notifier(token) +rss_reader = RssReader() + +updater = UpdateManager(db, notifier, rss_reader) +updater.update() \ No newline at end of file