Skip to content
Permalink
Browse files

finished

  • Loading branch information...
Mte90 committed Sep 25, 2019
1 parent f8faed0 commit 3b2b970d8bad1e13412963695039c8bb27e08193
Showing with 5 additions and 1 deletion.
  1. +3 −1 bot.py
  2. +2 −0 requirements.txt
4 bot.py
@@ -54,10 +54,12 @@

if tweet_it:
# Wait 10 minutes before tweet it
time.sleep(600)
time.sleep(10)
# Create a tweet
print('Posting new tweet')
api.update_status(post.title + ' via /r/' + str(post.subreddit) + "\nhttps://www.reddit.com" + post.permalink)

print()
with open('posts.json', 'w') as outfile:
print("Posts saved")
json.dump(posts, outfile, indent=4)
@@ -0,0 +1,2 @@
tweepy
praw

0 comments on commit 3b2b970

Please sign in to comment.
You can’t perform that action at this time.