Rewrite adapter port
This commit is contained in:
@@ -13,16 +13,15 @@ class TwitchBot(commands.Bot):
|
|||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
token=access_token,
|
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
|
prefix='!', # A prefix is required but won't be used for reading chat
|
||||||
initial_channels=[channel_name],
|
initial_channels=[channel_name],
|
||||||
# These are now required by twitchio
|
# These are now required by twitchio
|
||||||
client_id=client_id,
|
client_id=client_id,
|
||||||
client_secret=client_secret,
|
client_secret=client_secret,
|
||||||
# The 'bot_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
|
||||||
bot_id=bot_id, id=bot_id,
|
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
|
|
||||||
)
|
)
|
||||||
self.channel_name = channel_name
|
self.channel_name = channel_name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user