Update chud award to include trans/pride flag hats

pull/10/head
Marco 2022-11-25 02:08:43 +00:00
parent 6b052b05cf
commit 5ffa65df8e
2 changed files with 11 additions and 3 deletions

View File

@ -246,9 +246,12 @@ class User(Base):
for k, val in forced_hats.items():
if k == 'marsify':
if self.marsify > 1:
user_forced_hats.append(val)
user_forced_hats.append(val)
elif getattr(self, k):
user_forced_hats.append(val)
if k == 'agendaposter':
user_forced_hats.append(random.choice(val))
else:
user_forced_hats.append(val)
if user_forced_hats: return random.choice(user_forced_hats)
else: return None

View File

@ -1583,7 +1583,12 @@ forced_hats = {
"earlylife": ("The Merchant", "SHUT IT DOWN, the goys know!"),
"marsify": ("Marsified", "I can't pick my own Marseys, help!"),
"is_suspended": ("Behind Bars", "This user is banned and needs to do better!"),
"agendaposter": ("Egg_irl", "This user is getting in touch with xir identity!")
"agendaposter": (("Egg_irl", "This user is getting in touch with xir identity!"),
("Trans Flag", "Just in case you forgot, trans lives matter."),
("Trans Flag II", "Your egg is cracked; wear it with pride!"),
("Pride Flag", "Never forget that this is a primarily gay community. Dude bussy lmao."),
("Pride Flag II", "This user is a proud supporter of LGBTQ+ rights."))
}
EMAIL_REGEX_PATTERN = '[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{2,63}\.[A-Za-z]{2,63}'