So the discord bot works fine, but it randomly just crashes?
I'll provide code in DMs or PM, its 2 files. Heres the error, any NodeJS devs know how to fix this?
I'll provide code in DMs or PM, its 2 files. Heres the error, any NodeJS devs know how to fix this?
Code:
events.js:188
throw err;
^
Error: Unhandled "error" event. ([object Object])
at CommandoClient.emit (events.js:186:19)
at WebSocketConnection.onError (/root/DiscordBots/Toggle/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:374:17)
at WebSocket.onError (/root/DiscordBots/Toggle/node_modules/ws/lib/event-target.js:128:16)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
at _receiver.cleanup (/root/DiscordBots/Toggle/node_modules/ws/lib/websocket.js:211:14)
at Receiver.cleanup (/root/DiscordBots/Toggle/node_modules/ws/lib/receiver.js:557:13)
at WebSocket.finalize (/root/DiscordBots/Toggle/node_modules/ws/lib/websocket.js:206:20)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
