From 561e240b373539f6abb5284f9152cf512a804e24 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 9 Dec 2024 11:17:45 +0100 Subject: [PATCH] update bot --- app/cron_reddit_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cron_reddit_bot.py b/app/cron_reddit_bot.py index b0895b1..6c481c2 100644 --- a/app/cron_reddit_bot.py +++ b/app/cron_reddit_bot.py @@ -392,7 +392,7 @@ def post_to_reddit(): with open("json/dashboard/data.json", "rb") as file: data = orjson.loads(file.read()) - + ''' post_configs = [ { "data_type": "penny-stocks", @@ -485,7 +485,7 @@ def post_to_reddit(): print(f"Post created successfully") except Exception as e: print(f"Error posting to Reddit: {str(e)}") - ''' + if __name__ == "__main__": post_to_reddit()