From 5bf70cf2656630e3979ea8a4df6bf3a27cad6b43 Mon Sep 17 00:00:00 2001 From: Ritabrata Das Date: Thu, 13 Mar 2025 12:40:14 +0530 Subject: Do not send bot leave message to discord --- proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.py b/proxy.py index 889019b..9073cf0 100644 --- a/proxy.py +++ b/proxy.py @@ -344,8 +344,8 @@ async def handle_client(client_reader, client_writer): except Exception as e: warning(f"Error sending disconnect message: {e}") - if DISCORD_ENABLED: - await discord_send_message(CHANNEL_ID, f"{player.username} has left the server!") + if DISCORD_ENABLED: + await discord_send_message(CHANNEL_ID, f"{player.username} has left the server!") # Always close connections, regardless of previous state try: -- cgit v1.2.3