add SNAPPY_THREAD to WPD

master
Aevann 2023-09-05 23:04:56 +03:00
parent 3b3fd3d868
commit c8781af310
3 changed files with 3454 additions and 4 deletions

View File

@ -809,8 +809,9 @@ elif SITE == 'watchpeopledie.tv':
SIDEBAR_THREAD = 5403
BANNER_THREAD = 9869
BADGE_THREAD = 52519
SNAPPY_THREAD = 67186
CHANGELOG_THREAD = 56363
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, CHANGELOG_THREAD, 22937}
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD, 22937}
MAX_VIDEO_SIZE_MB = 500
MAX_VIDEO_SIZE_MB_PATRON = 500

View File

@ -40,12 +40,10 @@ def const_initialize():
if IS_FISTMAS():
filename = f"snappy_fistmas_{SITE_NAME}.txt"
else:
filename = f"snappy_rDrama.txt"
filename = f"snappy_{SITE_NAME}.txt"
try:
with open(filename, "r", encoding="utf-8") as f:
SNAPPY_QUOTES = f.read().split("\n{[para]}\n")
if SITE_NAME == 'WPD':
SNAPPY_QUOTES = [x for x in SNAPPY_QUOTES if 'drama' not in x.lower() and 'deux' not in x.lower()]
except FileNotFoundError:
pass

3451
snappy_WPD.txt 100644

File diff suppressed because one or more lines are too long