You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type: 'error',
message: 'WebSocket was closed before the connection was established',
error: Error: WebSocket was closed before the connection was established
at WebSocket.close (/home/PantomathBot/node_modules/ws/lib/websocket.js:217:14)
at VoiceWebSocket.reset (/home/PantomathBot/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:53:60)
at VoiceWebSocket.shutdown (/home/PantomathBot/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:44:10)
at VoiceConnection.emit (events.js:326:22)
at VoiceConnection.disconnect (/home/PantomathBot/node_modules/discord.js/src/client/voice/VoiceConnection.js:352:10)
at Player.stop_playing (/home/PantomathBot/plugins/MusicPlayer/player.js:178:20)
at StreamDispatcher. (/home/PantomathBot/plugins/MusicPlayer/player.js:158:26)
at StreamDispatcher.emit (events.js:314:20)
at StreamDispatcher._setSpeaking (/home/PantomathBot/node_modules/discord.js/src/client/voice/dispatcher/StreamDispatcher.js:310:10)
at /home/PantomathBot/node_modules/discord.js/src/client/voice/dispatcher/StreamDispatcher.js:296:12
}
The text was updated successfully, but these errors were encountered:
The problem is not that the bot disconnects from playing music...
the bot stops when this happen.... maybe it can be solved somehow from music player... or a proteciton to only stop music from that server, and not turn off the bot :(
again using commands is the way how you are really supposed to do so safely, as the audio stream is still trying to push to the old voice channel but the bot is not in that voice channel anymore.
I think fixing this would require reworking how music playback is done. #165 is a similar problem also caused by the rudimentary audio stream handling.
type: 'error',
message: 'WebSocket was closed before the connection was established',
error: Error: WebSocket was closed before the connection was established
at WebSocket.close (/home/PantomathBot/node_modules/ws/lib/websocket.js:217:14)
at VoiceWebSocket.reset (/home/PantomathBot/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:53:60)
at VoiceWebSocket.shutdown (/home/PantomathBot/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:44:10)
at VoiceConnection.emit (events.js:326:22)
at VoiceConnection.disconnect (/home/PantomathBot/node_modules/discord.js/src/client/voice/VoiceConnection.js:352:10)
at Player.stop_playing (/home/PantomathBot/plugins/MusicPlayer/player.js:178:20)
at StreamDispatcher. (/home/PantomathBot/plugins/MusicPlayer/player.js:158:26)
at StreamDispatcher.emit (events.js:314:20)
at StreamDispatcher._setSpeaking (/home/PantomathBot/node_modules/discord.js/src/client/voice/dispatcher/StreamDispatcher.js:310:10)
at /home/PantomathBot/node_modules/discord.js/src/client/voice/dispatcher/StreamDispatcher.js:296:12
}
The text was updated successfully, but these errors were encountered: