Bug fix: uncommented lines from demo mode

This commit is contained in:
Vivek Santayana 2021-08-06 00:39:58 +01:00
parent ffe9e86357
commit 272ecf80a5
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/python3.8 #!/usr/local/bin/python3.9
import tweepy import tweepy
import time import time
import os import os
@ -43,10 +43,10 @@ def interactions():
print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True) print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True)
if not tweet.favorited: if not tweet.favorited:
print('Not favourited.') print('Not favourited.')
# api.create_favorite(tweet.id) api.create_favorite(tweet.id)
if not tweet.retweeted: if not tweet.retweeted:
print('Not retweeted.') print('Not retweeted.')
# api.retweet(tweet.id) api.retweet(tweet.id)
storeLastSeen(lastSeenFile, tweet.id) storeLastSeen(lastSeenFile, tweet.id)
now = datetime.now() now = datetime.now()

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/python3.8 #!/usr/local/bin/python3.9
import tweepy import tweepy
import time import time
import os import os
@ -48,7 +48,7 @@ def posting():
words = generate_words() words = generate_words()
output = f'What is {words[0]} if not {words[1]} persevering?' output = f'What is {words[0]} if not {words[1]} persevering?'
print(output) print(output)
# api.update_status(output) api.update_status(output)
with open('/usr/src/app/post_log.txt', 'a') as logFile: with open('/usr/src/app/post_log.txt', 'a') as logFile:
logFile.write(f'{datetime.now().strftime("%Y-%m-%d-%X")}: {output}\n') logFile.write(f'{datetime.now().strftime("%Y-%m-%d-%X")}: {output}\n')