-
Notifications
You must be signed in to change notification settings - Fork 0
Development #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development #36
Changes from all commits
56e44f8
82db2b0
579683d
fad6d1a
a12de82
5d79afe
0f3af89
d5d90f6
cbf5fcd
5a5d1d5
207ba9b
76b9912
366b640
ebc7bb7
be9a086
3fc9146
914b789
938886f
7737a2f
3ea0d45
ee4de2a
3ae0527
25dc303
730dc88
bb266bd
7d70a13
d1f450d
5436727
d8c850e
1405787
1ad53b1
3956aed
a0b1f82
a2d0cea
6adf5b1
57df8ef
6bbabff
7672520
d56e12e
5aca8cf
f0cb455
dd0ffab
4f534c8
9095db5
979acca
008f0e0
c09bdcc
1cb53f6
ee60426
56967e2
cfcf2dd
1aa6813
5844084
4a6a8e5
693bfbc
326928e
a80e583
69800d3
365ef8e
61d9dcf
046c52f
7b33d13
638fb4e
59a7722
4a09f0b
99b9642
15efb3c
6ca3832
08355e7
0d7bb86
484caaf
a45dcfc
478e8ea
6ad992d
2fcaa47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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' | ||
|
Comment on lines
+415
to
+418
|
||
| cache: 'pip' | ||
|
|
||
| - name: Set up Node.js | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -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()]}") | ||||
|
||||
| logger.debug(f"Bot methods: {[m for m in dir(self) if 'channel' in m.lower() or 'join' in m.lower()]}") |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The modified event_ready method now relies on TwitchIO's automatic channel joining behavior instead of explicitly calling join_channels(). This behavioral change lacks test coverage. Consider adding a test to verify that:
- Channels specified in
initial_channelsare automatically joined - The
connected_channelsattribute is properly populated after the bot is ready - The bot can successfully receive messages from the auto-joined channel
This is especially important given the comment mentions this is a TwitchIO 3.x-specific behavior that should be verified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change downgrades the Python version from 3.11 to 3.10, which is inconsistent with the project's stated requirements. The README.md specifies "Python 3.9+" (line 130). If Python 3.10 is specifically required for the build process, the documentation should be updated to clarify this. Otherwise, consider using Python 3.11 to align with the latest stable version and ensure forward compatibility.