daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Sep 24th, 2016 299 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import praw
  2.  
  3. USERNAME= #Enter moderator username
  4. PASSWORD= #Enter moderator password
  5.  
  6. mods = ["usera","userb","userf","userj"] #Enter usernames who can remove comments
  7.  
  8. r = praw.Reddit(user_agent='comments moderator by /u/instaguy88')
  9. r.login(USERNAME,PASSWORD, disable_warning=True)
  10.  
  11. while True:
  12.     for mention in r.get_mentions():
  13.         if(mention.author.name in mods):
  14.             r.get_info(thing_id=mention.parent_id).remove()
  15.             mention.remove()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top