From c6450bc7bef063f1dc9afc4ce96e8f19ec1d319a Mon Sep 17 00:00:00 2001 From: ramforth Date: Tue, 18 Nov 2025 01:11:18 +0100 Subject: [PATCH] test3 on the listener --- chat_listener.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chat_listener.py b/chat_listener.py index 8de8bcb..d4462c8 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -14,8 +14,15 @@ class TwitchBot(commands.Bot): # Store our application's database user ID to avoid conflict with twitchio's internal 'owner_id' self.db_user_id = db_user_id + # Force the bot to use our dummy adapter that does nothing. + # This is the definitive fix to prevent any port conflicts. + adapter = NullAdapter() + super().__init__( token=access_token, + # Mandate: Explicitly disable the internal web server. + web_server_adapter=adapter, + eventsub_url=None, prefix='!', # A prefix is required but won't be used for reading chat initial_channels=[channel_name], # These are required by twitchio