From 2f0e817e120107dfdf0f5ffb3fbd1ac34d5b2010 Mon Sep 17 00:00:00 2001 From: ramforth Date: Mon, 17 Nov 2025 18:24:15 +0100 Subject: [PATCH] added kwargs --- chat_listener.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chat_listener.py b/chat_listener.py index 34adde1..00dd6c6 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -15,8 +15,9 @@ class TwitchBot(commands.Bot): client_secret=client_secret, # The 'bot_id' is the Twitch ID of the user account the bot is running as bot_id=bot_id, id=bot_id, - # Explicitly disable the internal web server to prevent all port conflicts. - eventsub_url=None + # Force the internal webserver to a harmless, high port to permanently + # resolve the "address already in use" error during hot-reloads. + web_server_adapter_kwargs={'host': 'localhost', 'port': 8123} ) self.channel_name = channel_name