Last active
July 28, 2018 23:12
-
-
Save Abrownn/d4615efcbf37ce474bf2895887ebffcb to your computer and use it in GitHub Desktop.
Nukes a sub, may need to be ran several times
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import praw | |
def SubNuke(): | |
r = praw.Reddit(username = "", | |
password = "", | |
client_id = "", | |
client_secret = "", | |
user_agent = "NUKE SPAM ITS BAD OH GOD PLZ DIE") | |
for submission in r.subreddit("").new(limit=1000): | |
submission.mod.remove() | |
print("deleted") | |
print("done") | |
exit() | |
while True: | |
try: | |
SubNuke(r) | |
except Exception as e: | |
print ("Blep!") | |
print("Error: " + str(e)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment