diff --git a/chat_listener.py b/chat_listener.py index 244cca6..0d3f54e 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -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