forked from MarseyWorld/MarseyWorld
fds
parent
8bddb2163d
commit
4df1d57cbb
|
@ -546,13 +546,13 @@ def award_post(pid, v):
|
|||
elif kind == "pause":
|
||||
author.mute = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(68):
|
||||
if not author.has_badge(68):
|
||||
new_badge = Badge(badge_id=68, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "unpausable":
|
||||
author.unmutable = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(67):
|
||||
if not author.has_badge(67):
|
||||
new_badge = Badge(badge_id=67, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "marsey":
|
||||
|
@ -572,19 +572,19 @@ def award_post(pid, v):
|
|||
elif kind == "eye":
|
||||
author.eye = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(83):
|
||||
if not author.has_badge(83):
|
||||
new_badge = Badge(badge_id=83, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "alt":
|
||||
author.alt = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(84):
|
||||
if not author.has_badge(84):
|
||||
new_badge = Badge(badge_id=84, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "unblockable":
|
||||
author.unblockable = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(87):
|
||||
if not author.has_badge(87):
|
||||
new_badge = Badge(badge_id=87, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
for block in g.db.query(UserBlock).filter_by(target_id=author.id).all(): g.db.delete(block)
|
||||
|
@ -698,13 +698,13 @@ def award_comment(cid, v):
|
|||
elif kind == "pause":
|
||||
author.mute = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(68):
|
||||
if not author.has_badge(68):
|
||||
new_badge = Badge(badge_id=68, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "unpausable":
|
||||
author.unmutable = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(67):
|
||||
if not author.has_badge(67):
|
||||
new_badge = Badge(badge_id=67, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "marsey":
|
||||
|
@ -724,19 +724,19 @@ def award_comment(cid, v):
|
|||
elif kind == "eye":
|
||||
author.eye = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(83):
|
||||
if not author.has_badge(83):
|
||||
new_badge = Badge(badge_id=83, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "alt":
|
||||
author.alt = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(84):
|
||||
if not author.has_badge(84):
|
||||
new_badge = Badge(badge_id=84, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
elif kind == "unblockable":
|
||||
author.unblockable = True
|
||||
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
|
||||
if not v.has_badge(87):
|
||||
if not author.has_badge(87):
|
||||
new_badge = Badge(badge_id=87, user_id=author.id)
|
||||
g.db.add(new_badge)
|
||||
for block in g.db.query(UserBlock).filter_by(target_id=author.id).all(): g.db.delete(block)
|
||||
|
|
Loading…
Reference in New Issue