a guest Nov 5th, 2018 128 Never
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',
- 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**'
RAW Paste Data