Skip to content
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

Leaving IRC chat with error #515

Open
0ynn0 opened this issue Apr 29, 2024 · 2 comments
Open

Leaving IRC chat with error #515

0ynn0 opened this issue Apr 29, 2024 · 2 comments

Comments

@0ynn0
Copy link

0ynn0 commented Apr 29, 2024

Describe the bug

When stream goes offline, bot tries to leave IRC chat, but this happens instead:
Снимок экрана 2024-04-30 014120
(I tweaked code just for colors and translations, i didn't change actual code)

It says:
Exception found in: video-playback-by-id and message: {'server_time': 1714428539, 'type': 'stream_down'}
references to files
f"Leaving IRC chat {self.channel}", extra={"emoji": ":speech_balloon:", "event": Events.streamer_offline}
File "C:\Program Files\Python310\lib\enum.py", line 437, in getattr
raise AttributeError(name) from None
AttributeError: streamer_offline

Tried with fresh and clean version, same error. It appeared 5-6 days ago.
If i press CTRL+C it will says that CTRL+C is found, but whole error will be just duplicated and console will freeze.

Steps to reproduce

  1. Launch bot
  2. Wait for stream to end
  3. Error

Expected behavior

Print message about stream end, and being able to print recap

Operating system

Windows 11 PRO 23H2 (build OS 22631.3447)

Python version

3.10.6

Miner version

1.9.5

Other relevant software versions

No response

Logs

Log file
Console output

Additional context

No response

@0ynn0
Copy link
Author

0ynn0 commented Apr 29, 2024

For log file and console output i started my own stream and ended it when bot connected

@0ynn0
Copy link
Author

0ynn0 commented May 1, 2024

Looks like problem solved, reinstalled Python 3.12.3 with dependencies, and now it's working, but on first launch it said:

File "C:\Users\djhgs\Desktop\Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\WebSocketsPool.py", line 235, in on_message
ws.streamers[streamer_index].set_offline()
File "C:\Users\djhgs\Desktop\Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\entities\Streamer.py", line 125, in set_offline
self.toggle_chat()
File "C:\Users\djhgs\Desktop\Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\entities\Streamer.py", line 288, in toggle_chat
self.leave_chat()
File "C:\Users\djhgs\Desktop\Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\entities\Streamer.py", line 262, in leave_chat
self.irc_chat.stop()
File "C:\Users\djhgs\Desktop\Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\Chat.py", line 103, in stop
f"Отключение от чата {self.channel}", extra={"emoji": ":speech_balloon:", "event": Events.streamer_offline}
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Events' has no attribute 'streamer_offline'

So i just replaced 'streamer_offline' with 'STREAMER_OFFLINE' and now it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant