From 9eb614b9a3ed42a3d2ec4d09d997e4dfcd9d1813 Mon Sep 17 00:00:00 2001 From: ramforth Date: Tue, 18 Nov 2025 01:09:22 +0100 Subject: [PATCH] Incorrectly passed user_id corrected to bot_id and id=bot_id --- chat_listener.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/chat_listener.py b/chat_listener.py index eca9f03..8de8bcb 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -14,23 +14,16 @@ 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 client_id=client_id, client_secret=client_secret, - # The 'id' is the Twitch ID of the user account the bot is running as + # The 'bot_id' is the Twitch ID of the user account the bot is running as ssl=True, # Mandate: Explicitly use SSL for the IRC connection. - id=bot_id + bot_id=bot_id ) self.channel_name = channel_name