remotes/1693045480750635534/spooky-22
Aevann1 2022-01-11 02:11:34 +02:00
parent 9d460e5475
commit d0528c0431
2 changed files with 23 additions and 16 deletions

View File

@ -272,6 +272,9 @@ def award_post(pid, v):
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
elif kind == "flairlock":
new_name = note[:100].replace("𒐪","")
if not new_name and author.flairchanged:
author.flairchanged += 86400
else:
author.customtitleplain = new_name
author.customtitle = filter_emojis_only(new_name)
if len(author.customtitle) > 1000: abort(403)
@ -453,6 +456,9 @@ def award_comment(cid, v):
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
elif kind == "flairlock":
new_name = note[:100].replace("𒐪","")
if not new_name and author.flairchanged:
author.flairchanged += 86400
else:
author.customtitleplain = new_name
author.customtitle = filter_emojis_only(new_name)
if len(author.customtitle) > 1000: abort(403)

View File

@ -14,6 +14,7 @@ matplotlib
mistletoe
piexif
Pillow
psutil
pyotp
qrcode
redis