mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Award 1 fioryg on bio set
This commit is contained in:
parent
04ea3ea86e
commit
19a1f98f1f
1 changed files with 7 additions and 0 deletions
|
@ -175,6 +175,13 @@ def page_editprofile():
|
|||
if profile_data is None:
|
||||
profile_data = db.ProfileData(royal_id=user_id, css=css, bio=bio)
|
||||
db_session.add(profile_data)
|
||||
profile_data.royal.fiorygi += 1
|
||||
try:
|
||||
telegram_bot.send_message(config["Telegram"]["main_group"],
|
||||
f'⭐️ {profile_data.royal.username} ha configurato la sua bio su Royalnet e ha ottenuto un fioryg!',
|
||||
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
profile_data.css = css
|
||||
profile_data.bio = bio
|
||||
|
|
Loading…
Reference in a new issue