aboutsummaryrefslogtreecommitdiffstats
path: root/onceaday.py
diff options
context:
space:
mode:
Diffstat (limited to 'onceaday.py')
-rwxr-xr-xonceaday.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/onceaday.py b/onceaday.py
index 0be0c2f..d2f750a 100755
--- a/onceaday.py
+++ b/onceaday.py
@@ -1,10 +1,7 @@
-import subreddit
-from time import sleep
+import os
+os.chdir("/root/SmallYTChannelBotSubmissions")
-SECONDS_IN_DAY = 24 * 60 * 60
+import subreddit
-while True:
- #sleep(60 * 60 * 13)
- subreddit.every_day()
- print("Called @ %s" % subreddit.get_time())
- sleep(60 * 60 * 24)
+subreddit.every_day()
+subreddit.logging.info("Called OAD prog @ %s" % subreddit.get_time())