Rewrite adapter port

This commit is contained in:
2025-11-17 18:18:37 +01:00
parent ab832e928f
commit 9b7c9e8671

View File

@@ -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