Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import linecache
- import praw
- import random
- import time
- r = praw.Reddit(user_agent="This bot tips people Dogecoin if they guess the word of the day. Created by /u/PieMan2201")
- r.login('keywordtipbot', '****************')
- alreadydone = set()
- while True:
- z = random.randrange(1,500)
- keyword = linecache.getline('dictionary', z).split('\n')[0]
- time.sleep(86400)
- dogecoin = r.get_subreddit('dogecoin')
- doge_comments = dogecoin.get_comments()
- for x in doge_comments:
- if keyword in x.body.lower() and x.id not in alreadydone:
- x.reply('You got the word of the day! +/u/dogetipbot 125 doge verify')
- alreadydone.add(x.id)
- else:
- alreadydone.add(x.id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement