summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRitabrata Das <[email protected]>2025-03-13 12:40:14 +0530
committerRitabrata Das <[email protected]>2025-03-13 12:40:14 +0530
commit5bf70cf2656630e3979ea8a4df6bf3a27cad6b43 (patch)
treef3dfb0d2680eae50cc6d1fa2820190f6c29ad176
parentb63fda551d01ce10231b46a657c4f9410a66ef37 (diff)
Do not send bot leave message to discord
-rw-r--r--proxy.py4
1 files 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: