Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Created by /u/real_aldous_huxley
- # Hours wasted on this 0.25
- # Import Required libs
- import praw
- import re
- import random
- # Define Reddit Instance
- def bot():
- print("Logging in...")
- # REPLACE THE TEXT IN QUOTATIONS WITH THE REDDIT ACCOUNTS RESPECTIVE CLIENT INFORMATION
- reddit = praw.Reddit(user_agent='USER_AGENT',
- client_id='CLIENT_ID',
- client_secret='CLIENT_SECRET',
- username='USERNAME',
- password='PASSWORD')
- # Put quotes here in quotations seperated by commas they will be chosen randomly
- quotes = \
- [
- " You are speaking to a GP shill/troll I urge you to report them to the moderators. ^(This action was preformed automatically as part of my efforts to piss off GP shills) ",
- ]
- # REPLACE TEST WITH THE SUBREDDIT YOU WANT THE BOT ACTIVE IN
- subreddit = reddit.subreddit("test")
- comments = subreddit.stream.comments()
- for comment in comments:
- text = comment.body
- author = comment.author
- message = = random.choice(quotes)
- # REPLACE USER WITH THE USERNAME YOU WANT TO BOT TO STALK AND REPLY TO,
- if str(comment.author) == 'user':
- comment.reply(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement