From 88b5db2afec75ed73fa9f0c3ddb00eaf0e52d43b Mon Sep 17 00:00:00 2001 From: Giulio Date: Fri, 17 Dec 2021 22:47:03 +0100 Subject: [PATCH] chat emit report confirm --- backend/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/__init__.py b/backend/__init__.py index d679666..bc616dc 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -344,6 +344,7 @@ def chat_message(sid, msg, pl=None): if "DISCORD_WEBHOOK" in os.environ and os.environ['DISCORD_WEBHOOK'].len > 0: webhook = DiscordWebhook(url=os.environ['DISCORD_WEBHOOK'], content=f'New bug report, replay at https://hastebin.com/{key}') response = webhook.execute() + sio.emit('chat_message', room=sid, data={'color': f'green','text':f'Report OK'}) else: print("WARNING: DISCORD_WEBHOOK not found") print(f'New bug report, replay at https://hastebin.com/{key}')