TrojanerHD / TrojanerBot

My discord bot
MIT License
4 stars 2 forks source link

Bot randomly crashes #64

Closed TrojanerHD closed 1 year ago

TrojanerHD commented 1 year ago
Error: WebSocket was closed before the connection was established
    at WebSocket.close (/home/trojaner/Code/Web/TrojanerBot/node_modules/ws/lib/websocket.j
s:285:14)
    at WebSocketShard.destroy (/home/trojaner/Code/Web/TrojanerBot/node_modules/discord.js/
src/client/websocket/WebSocketShard.js:728:27)
    at Timeout.<anonymous> (/home/trojaner/Code/Web/TrojanerBot/node_modules/discord.js/src
/client/websocket/WebSocketShard.js:522:12)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
Emitted 'error' event on WebSocket instance at: 
    at emitErrorAndClose (/home/trojaner/Code/Web/TrojanerBot/node_modules/ws/lib/websocket
.js:984:13)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Possibly bumping the discord.js version might fix that?

TrojanerHD commented 1 year ago

This has not happened ever since then and in https://github.com/TrojanerHD/TrojanerBot/pull/68, the discord.js version was updated so this is quite possibly fixed now.