Correction to init for access token

This commit is contained in:
2025-11-17 15:20:10 +01:00
parent 5dc73bd06a
commit 034c8fe604

View File

@@ -2,7 +2,7 @@ from twitchio.ext import commands
class TwitchBot(commands.Bot):
def __init__(self, access_token: str, client_id: str, client_secret: str, bot_id: str, channel_name: str):
super().__init__(
super().__init__(
token=access_token,
prefix='!', # A prefix is required but won't be used for reading chat
initial_channels=[channel_name],
@@ -10,7 +10,7 @@ class TwitchBot(commands.Bot):
client_id=client_id,
client_secret=client_secret,
# The 'bot_id' is the Twitch ID of the user account the bot is running as
id=bot_id
bot_id=bot_id, id=bot_id
)
self.channel_name = channel_name