This commit is contained in:
Aevann1 2022-01-23 17:29:13 +02:00
parent 722201623a
commit c0036bceef
6 changed files with 10 additions and 19 deletions

View file

@ -1008,7 +1008,7 @@ def submit_post(v):
with open(f'snappy_{SITE_NAME}.txt', "r") as f:
snappyquotes = f.read().split("{[para]}")
if request.host != 'pcmemes.net':
marseys = cache.get("marseys").keys()
with open("marseys.json", 'r') as f: marseys = loads(f.read().replace("'",'"')).keys()
snappyquotes += [f':#{x}:' for x in marseys]
body = random.choice(snappyquotes)
body += "\n\n"