add snappy quote for DKD

master
Aevann 2023-04-25 18:43:05 +02:00
parent e3834f3fe3
commit 15a47082b5
5 changed files with 8 additions and 3 deletions

View File

@ -68,7 +68,7 @@ def execute_snappy(post:Submission, v:User):
else: body = "wow, a good lawlzpost for once!" else: body = "wow, a good lawlzpost for once!"
else: else:
if SNAPPY_MARSEYS and SNAPPY_QUOTES: if SNAPPY_MARSEYS and SNAPPY_QUOTES:
if IS_FISTMAS() or random.random() > 0.5: if IS_DKD() or IS_FISTMAS() or random.random() > 0.5:
SNAPPY_CHOICES = SNAPPY_QUOTES SNAPPY_CHOICES = SNAPPY_QUOTES
else: else:
SNAPPY_CHOICES = SNAPPY_MARSEYS SNAPPY_CHOICES = SNAPPY_MARSEYS

View File

@ -31,8 +31,12 @@ def _initialize_snappy_marseys_and_quotes():
global SNAPPY_MARSEYS, SNAPPY_QUOTES global SNAPPY_MARSEYS, SNAPPY_QUOTES
SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2] SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2]
if IS_DKD():
filename = f"snappy_DKD.txt"
elif IS_FISTMAS():
filename = f"snappy_fistmas_{SITE_NAME}.txt"
else:
filename = f"snappy_{SITE_NAME}.txt" filename = f"snappy_{SITE_NAME}.txt"
if IS_FISTMAS(): filename = f"snappy_event_{SITE_NAME}.txt"
try: try:
with open(filename, "r", encoding="utf-8") as f: with open(filename, "r", encoding="utf-8") as f:

1
snappy_DKD.txt 100644
View File

@ -0,0 +1 @@
:donkeykongdance#: :donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#::donkeykongdance#: