bbb
parent
9d460e5475
commit
d0528c0431
|
@ -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}")
|
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
|
||||||
elif kind == "flairlock":
|
elif kind == "flairlock":
|
||||||
new_name = note[:100].replace("𒐪","")
|
new_name = note[:100].replace("𒐪","")
|
||||||
|
if not new_name and author.flairchanged:
|
||||||
|
author.flairchanged += 86400
|
||||||
|
else:
|
||||||
author.customtitleplain = new_name
|
author.customtitleplain = new_name
|
||||||
author.customtitle = filter_emojis_only(new_name)
|
author.customtitle = filter_emojis_only(new_name)
|
||||||
if len(author.customtitle) > 1000: abort(403)
|
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}")
|
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
|
||||||
elif kind == "flairlock":
|
elif kind == "flairlock":
|
||||||
new_name = note[:100].replace("𒐪","")
|
new_name = note[:100].replace("𒐪","")
|
||||||
|
if not new_name and author.flairchanged:
|
||||||
|
author.flairchanged += 86400
|
||||||
|
else:
|
||||||
author.customtitleplain = new_name
|
author.customtitleplain = new_name
|
||||||
author.customtitle = filter_emojis_only(new_name)
|
author.customtitle = filter_emojis_only(new_name)
|
||||||
if len(author.customtitle) > 1000: abort(403)
|
if len(author.customtitle) > 1000: abort(403)
|
||||||
|
|
|
@ -14,6 +14,7 @@ matplotlib
|
||||||
mistletoe
|
mistletoe
|
||||||
piexif
|
piexif
|
||||||
Pillow
|
Pillow
|
||||||
|
psutil
|
||||||
pyotp
|
pyotp
|
||||||
qrcode
|
qrcode
|
||||||
redis
|
redis
|
||||||
|
|
Loading…
Reference in New Issue