1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00

Award 1 fioryg on bio set

This commit is contained in:
Steffo 2018-09-07 19:09:48 +02:00
parent 04ea3ea86e
commit 19a1f98f1f

View file

@ -175,6 +175,13 @@ def page_editprofile():
if profile_data is None: if profile_data is None:
profile_data = db.ProfileData(royal_id=user_id, css=css, bio=bio) profile_data = db.ProfileData(royal_id=user_id, css=css, bio=bio)
db_session.add(profile_data) 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: else:
profile_data.css = css profile_data.css = css
profile_data.bio = bio profile_data.bio = bio