diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 951c44c..e888bb8 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -23,10 +23,10 @@ jobs: with: fetch-depth: 0 # Fetch all history for proper versioning - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.10' cache: 'pip' - name: Set up Node.js @@ -412,10 +412,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.10' cache: 'pip' - name: Set up Node.js diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 980e71a..796d923 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.10'] steps: - name: Checkout code diff --git a/backend/modules/twitch_listener.py b/backend/modules/twitch_listener.py index 95cb9f0..b15f57a 100644 --- a/backend/modules/twitch_listener.py +++ b/backend/modules/twitch_listener.py @@ -331,9 +331,15 @@ async def event_ready(self): who = getattr(self, "nick", None) or self._nick or "unknown" try: logger.info(f"Twitch bot ready as {who}, listening to {self.channel_name}") - # Join the channel to start receiving messages (required in TwitchIO 3.x) - await self.join_channels([self.channel_name]) - logger.info(f"Joined channel: {self.channel_name}") + + # In TwitchIO 3.x, channels from initial_channels should auto-join + # But we can verify by checking connected channels + if hasattr(self, 'connected_channels'): + logger.info(f"Connected channels: {list(self.connected_channels)}") + + # Log available methods for debugging + logger.debug(f"Bot methods: {[m for m in dir(self) if 'channel' in m.lower() or 'join' in m.lower()]}") + except Exception as e: logger.error(f"Error in event_ready: {e}", exc_info=True)