aboutsummaryrefslogtreecommitdiffstats
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/bot.py b/bot.py
index 27a5f3a..7e3c6f7 100644
--- a/bot.py
+++ b/bot.py
@@ -1,3 +1,6 @@
+import os
+os.chdir("/root/yaoi-communism")
+
from twython import Twython
import get_images
@@ -13,8 +16,4 @@ def post():
get_images.logging.info("Posted to twitter.")
if __name__ == "__main__":
- import time
-
- while True:
- post()
- time.sleep(60*60)
+ post()