diff --git a/interaction/script.py b/interaction/script.py index 9ac34b9..03156d0 100644 --- a/interaction/script.py +++ b/interaction/script.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python3.8 +#!/usr/local/bin/python3.9 import tweepy import time import os @@ -43,10 +43,10 @@ def interactions(): print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True) if not tweet.favorited: print('Not favourited.') - # api.create_favorite(tweet.id) + api.create_favorite(tweet.id) if not tweet.retweeted: print('Not retweeted.') - # api.retweet(tweet.id) + api.retweet(tweet.id) storeLastSeen(lastSeenFile, tweet.id) now = datetime.now() diff --git a/posting/script.py b/posting/script.py index 193730d..f0c9715 100644 --- a/posting/script.py +++ b/posting/script.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python3.8 +#!/usr/local/bin/python3.9 import tweepy import time import os @@ -48,7 +48,7 @@ def posting(): words = generate_words() output = f'What is {words[0]} if not {words[1]} persevering?' print(output) - # api.update_status(output) + api.update_status(output) with open('/usr/src/app/post_log.txt', 'a') as logFile: logFile.write(f'{datetime.now().strftime("%Y-%m-%d-%X")}: {output}\n')