fds
This commit is contained in:
parent
25736c5eb1
commit
aeff6bc232
4 changed files with 11 additions and 1 deletions
|
@ -390,6 +390,7 @@ def award_post(pid, v):
|
|||
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n\n\n{badge.name}")
|
||||
elif kind == "benefactor":
|
||||
author.patron = 1
|
||||
author.patron_utc += int(time.time()) + 2629746
|
||||
author.procoins += 2500
|
||||
if not v.has_badge(103):
|
||||
badge = Badge(user_id=v.id, badge_id=103)
|
||||
|
@ -611,6 +612,7 @@ def award_comment(cid, v):
|
|||
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n\n\n{badge.name}")
|
||||
elif kind == "benefactor":
|
||||
author.patron = 1
|
||||
author.patron_utc += int(time.time()) + 2629746
|
||||
author.procoins += 2500
|
||||
if not v.has_badge(103):
|
||||
badge = Badge(user_id=v.id, badge_id=103)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue