remove beano award (doesn't conflict with @TLSM's commit ☺)
This commit is contained in:
parent
37841c9b0f
commit
793273f638
2 changed files with 0 additions and 20 deletions
|
@ -234,14 +234,6 @@ AWARDS = {
|
|||
"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",
|
||||
"title": "Progressive Stack",
|
||||
|
|
|
@ -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\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\n\n{badge.name}")
|
||||
|
||||
if author.received_award_count: author.received_award_count += 1
|
||||
else: author.received_award_count = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue