Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # bigwordbot
- import praw
- # create the objects from the imported modules
- # reddit api login
- reddit = praw.Reddit(client_id='szquiEWkWHZF-w',
- client_secret='P4MEooSSngVCzlvAMBkdcIQMnU8',
- username='Floch_Forster',
- password='shmmmm2014',
- user_agent='floch')
- Floch_Forster = 'client'
- # the subreddits you want your bot to live on
- subreddit = reddit.subreddit('fhexmpls11')
- # phrase to activate the bot
- phrase = 'eren'
- # look for phrase and reply appropriately
- for comment in subreddit.stream.comments():
- if comment.author.name != 'Floch_Forster' and phrase in comment.body :
- reply ='>Eren \n\n**its** ***Sir*** **Eren Jaeger, you Marleyan swine!2**'
- comment.reply(reply)
- print('posted')
Add Comment
Please, Sign In to add comment