remove beano award (doesn't conflict with @TLSM's commit ☺)

This commit is contained in:
justcool393 2022-11-07 04:36:41 -06:00
parent 37841c9b0f
commit 793273f638
2 changed files with 0 additions and 20 deletions

View file

@ -233,14 +233,6 @@ AWARDS = {
"icon": "fas fa-dice-six",
"color": "text-black",
"price": 777
},
"beano": {
"kind": "beano",
"title": "Beano",
"description": "Stops you from embarrassing yourself with your flatulence",
"icon": "fas fa-gas-pump-slash",
"color": "text-green",
"price": 1000
},
"progressivestack": {
"kind": "progressivestack",

View file

@ -334,12 +334,6 @@ def award_post(pid, v):
elif kind == "deflector":
if author.deflector: author.deflector += 36000
else: author.deflector = int(time.time()) + 36000
elif kind == "beano":
if not author.has_badge(128):
badge = Badge(user_id=author.id, badge_id=128)
g.db.add(badge)
g.db.flush()
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
if author.received_award_count: author.received_award_count += 1
else: author.received_award_count = 1
@ -562,12 +556,6 @@ def award_comment(cid, v):
elif kind == "deflector":
if author.deflector: author.deflector += 36000
else: author.deflector = int(time.time()) + 36000
elif kind == "beano":
if not author.has_badge(128):
badge = Badge(user_id=author.id, badge_id=128)
g.db.add(badge)
g.db.flush()
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
if author.received_award_count: author.received_award_count += 1
else: author.received_award_count = 1