jevajs / Jeva

A monorepo for code used in videos/tutorials for Jeva. Created and maintained by @thatziv
https://discord.gg/PAaZ86d
MIT License
214 stars 1.38k forks source link

issue with discordbot starting #7

Closed GamertjeNL closed 4 years ago

GamertjeNL commented 4 years ago

Hello,

I start discordbotfivem. But i have a error SCRIPT ERROR in timer: Error [ERR_UNHANDLED_ERROR]: Unhandled error. ([object Object])

Client.emit (events.js:199) WebSocketShard.onError (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:330) WebSocket.onError (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/ws/lib/event-target.js:128) WebSocket.emit (events.js:210) abortHandshake (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/ws/lib/websocket.js:718) WebSocket.close (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/ws/lib/websocket.js:217) WebSocketShard.destroy (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:498) WebSocketManager.destroy (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:279) Client.destroy (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/discord.js/src/client/Client.js:276) (/home/container/resources/[ESX]/[extensions]/discordbot/node_modules/discord.js/src/client/Client.js:260)

what is my problemen and have you a fix for this

ThatZiv commented 4 years ago

What does your package.json file look like?

GamertjeNL commented 4 years ago

{ "name": "fivem_discord_bot", "version": "1.0.0", "description": "", "main": "bot.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "discord.js": "github:vecchiotom/discord.js" } }

This is the package,json file.

GamertjeNL commented 4 years ago

i fix the issue, its was my fault xD, but thanks for your help