From 9b7c9e8671165fb80cfc1d31f1c4ecd2df69f074 Mon Sep 17 00:00:00 2001 From: ramforth Date: Mon, 17 Nov 2025 18:18:37 +0100 Subject: [PATCH] Rewrite adapter port --- chat_listener.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/chat_listener.py b/chat_listener.py index 9622cfe..fbeb156 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -13,16 +13,15 @@ class TwitchBot(commands.Bot): super().__init__( token=access_token, + # Add the adapter first to ensure priority + web_server_adapter=adapter, prefix='!', # A prefix is required but won't be used for reading chat initial_channels=[channel_name], # These are now required by twitchio client_id=client_id, 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 port conflicts - # Pass our custom-configured adapter. - web_server_adapter=adapter + bot_id=bot_id, id=bot_id ) self.channel_name = channel_name