From 45015ff4b8be1576cda6e46d4217cf237f7ff6d9 Mon Sep 17 00:00:00 2001 From: Nayan <33187059+GShadow5@users.noreply.github.com> Date: Tue, 26 Aug 2025 13:04:09 -0400 Subject: [PATCH] fix read pipe call --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 0d181f7..83a3804 100644 --- a/bot.py +++ b/bot.py @@ -260,7 +260,7 @@ async def _stop_server_internal(ctx, servername, method): active_server = None # Clear active server state async def connect_to_existing_pipe(): - global active_server, active_server_pipe_task + global active_server, active_server_pipe_task, chat_channel, bot # Get list of servers with open('servers.json', 'r') as f: servers = json.load(f) @@ -276,7 +276,7 @@ async def connect_to_existing_pipe(): if server['servername'] in stdout: active_server = server['servername'] if os.path.exists(_get_pipe_path(active_server)): - await _read_from_pipe(active_server) + await _read_from_pipe(active_server, chat_channel, bot) return '''