From 19a1f98f1f0df6bc10f8e7cce31d15d783fa24b6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 7 Sep 2018 19:09:48 +0200 Subject: [PATCH] Award 1 fioryg on bio set --- webserver.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webserver.py b/webserver.py index e442e359..47f14c3a 100644 --- a/webserver.py +++ b/webserver.py @@ -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