event: force SNAPPY_QUOTES to be used on events

snappy: remove duplicate logic
pull/79/head
justcool393 2022-12-15 18:15:41 -06:00 committed by geese_suck
parent 33bf870142
commit c666653753
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
2 changed files with 6 additions and 4 deletions

View File

@ -56,14 +56,14 @@ def execute_snappy(post:Submission, v:User):
elif v.id == LAWLZ_ID:
if random.random() < 0.5: body = "wow, this lawlzpost sucks!"
else: body = "wow, a good lawlzpost for once!"
elif not SNAPPY_MARSEYS and not SNAPPY_QUOTES:
body = ""
elif post.sub == 'masterbaiters' and random.random() < 0.33:
body = "Can you people come up with any ideas that don't involve committing federal crimes"
else:
if SNAPPY_MARSEYS and SNAPPY_QUOTES:
if random.random() < 0.5: SNAPPY_CHOICES = SNAPPY_MARSEYS
else: SNAPPY_CHOICES = SNAPPY_QUOTES
if HOLIDAY_EVENT or random.random() > 0.5:
SNAPPY_CHOICES = SNAPPY_QUOTES
else:
SNAPPY_CHOICES = SNAPPY_MARSEYS
elif SNAPPY_MARSEYS: SNAPPY_CHOICES = SNAPPY_MARSEYS
elif SNAPPY_QUOTES: SNAPPY_CHOICES = SNAPPY_QUOTES
else: SNAPPY_CHOICES = [""]

View File

@ -1,3 +1,4 @@
```
.-""-.
/,..___\
() {_____}
@ -6,3 +7,4 @@
{ `-' } Merry Fistmas!
{ }
`---'
```