From 034c8fe604645ab04c241f18afc50e1edc3a4715 Mon Sep 17 00:00:00 2001 From: ramforth Date: Mon, 17 Nov 2025 15:20:10 +0100 Subject: [PATCH] Correction to init for access token --- chat_listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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