Skip to content

Commit cf75472

Browse files
pladisdevCopilotCopilot
authored
Development (#36)
* pop up mode and chat buble toggle * potential audio fix * linux sh and better docker support * fixed linux build? * linux fix part 2 * docker fix part 1 * Initial plan * Initial plan * Initial plan * Initial plan * Initial plan * Initial plan * Initial plan * Update frontend/src/pages/YappersPage.jsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Initial plan * Update frontend/src/pages/YappersPage.jsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Replace sys.platform with platform.system() for OS detection Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * Fix race condition in popup avatar lifecycle Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * Extract magic numbers to named constants for better readability Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * Extract magic number -2.5px into avatarActiveOffset setting Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * Fix audio cleanup in popup mode when play() fails Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * Extract hex opacity calculation to utility function Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * Fix audio error handlers to clean up tracking references Co-authored-by: pladisdev <127021507+pladisdev@users.noreply.github.com> * update flow for builds * better build and release file * workflow fix * build fix * usernames in chat bubbles * twitch authentifcation * tts limit * notifcation that user needs to click page, quick status * update readme, version * emergency twitch fix * yep * dang * better twitch logging * animations and avatar layout editor * fix spin animation * twitch fix part 2 * twitch fix, better fonts, cleanup * fixed imports * fixed things * undefined fix * twitch test fix * another mock fix * another fix for twitch creds tests * better logging * twitch fixes? * another twitch fix * fix twitch io 3.x * fix pipelines for python to use 3.10 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d2a1ba9 commit cf75472

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
with:
2424
fetch-depth: 0 # Fetch all history for proper versioning
2525

26-
- name: Set up Python 3.11
26+
- name: Set up Python 3.10
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: '3.11'
29+
python-version: '3.10'
3030
cache: 'pip'
3131

3232
- name: Set up Node.js
@@ -412,10 +412,10 @@ jobs:
412412
with:
413413
fetch-depth: 0
414414

415-
- name: Set up Python 3.11
415+
- name: Set up Python 3.10
416416
uses: actions/setup-python@v4
417417
with:
418-
python-version: '3.11'
418+
python-version: '3.10'
419419
cache: 'pip'
420420

421421
- name: Set up Node.js

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ['3.9', '3.10', '3.11']
16+
python-version: ['3.10']
1717

1818
steps:
1919
- name: Checkout code

backend/modules/twitch_listener.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,15 @@ async def event_ready(self):
331331
who = getattr(self, "nick", None) or self._nick or "unknown"
332332
try:
333333
logger.info(f"Twitch bot ready as {who}, listening to {self.channel_name}")
334-
# Join the channel to start receiving messages (required in TwitchIO 3.x)
335-
await self.join_channels([self.channel_name])
336-
logger.info(f"Joined channel: {self.channel_name}")
334+
335+
# In TwitchIO 3.x, channels from initial_channels should auto-join
336+
# But we can verify by checking connected channels
337+
if hasattr(self, 'connected_channels'):
338+
logger.info(f"Connected channels: {list(self.connected_channels)}")
339+
340+
# Log available methods for debugging
341+
logger.debug(f"Bot methods: {[m for m in dir(self) if 'channel' in m.lower() or 'join' in m.lower()]}")
342+
337343
except Exception as e:
338344
logger.error(f"Error in event_ready: {e}", exc_info=True)
339345

0 commit comments

Comments
 (0)