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