diff --git a/chat_listener.py b/chat_listener.py index 34f9de7..bdc4c67 100644 --- a/chat_listener.py +++ b/chat_listener.py @@ -26,7 +26,7 @@ class TwitchBot(commands.Bot): ) self.channel_name = channel_name - async def event_ready(self, mesage): + async def event_ready(self): """Called once when the bot goes online.""" print(f"Listener ready for #{self.channel_name}") @@ -45,7 +45,5 @@ class TwitchBot(commands.Bot): # Broadcast the message to the specific user's overlay # We need the user's ID to know which WebSocket connection to send to. - # For now, we'll assume the bot instance is tied to a user ID. - # Let's find the user ID from the channel name. - user_id = self.owner_id + user_id = self.db_user_id await self.websocket_manager.broadcast_to_user(user_id, chat_data) \ No newline at end of file