|
|
@ -11,7 +11,7 @@ from time import sleep
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from loremipsum import get_sentence
|
|
|
|
from loremipsum import get_sentence
|
|
|
|
except:
|
|
|
|
except ImportError:
|
|
|
|
def get_sentence():
|
|
|
|
def get_sentence():
|
|
|
|
return '''I have been Shreddited for privacy!\n\n\
|
|
|
|
return '''I have been Shreddited for privacy!\n\n\
|
|
|
|
https://github.com/x89/Shreddit/'''
|
|
|
|
https://github.com/x89/Shreddit/'''
|
|
|
@ -122,10 +122,10 @@ for thing in things:
|
|
|
|
replacement_text[:78],
|
|
|
|
replacement_text[:78],
|
|
|
|
thing.subreddit
|
|
|
|
thing.subreddit
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if edit_only:
|
|
|
|
if edit_only:
|
|
|
|
print('Editing {msg}'.format(msg=msg))
|
|
|
|
print('Editing {msg}'.format(msg=msg))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print('Editing and deleting {msg}'.format(msg=msg))
|
|
|
|
print('Editing and deleting {msg}'.format(msg=msg))
|
|
|
|
thing.edit(replacement_text)
|
|
|
|
thing.edit(replacement_text)
|
|
|
|
if not edit_only:
|
|
|
|
if not edit_only:
|
|
|
|
thing.delete()
|
|
|
|
thing.delete()
|
|
|
|