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

issue with discordbot starting #7

Closed
GamertjeNL opened this issue May 6, 2020 · 3 comments
Closed

issue with discordbot starting #7

GamertjeNL opened this issue May 6, 2020 · 3 comments

Comments

@GamertjeNL
Copy link

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
Copy link
Member

ThatZiv commented May 8, 2020

What does your package.json file look like?

@GamertjeNL
Copy link
Author

{
"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
Copy link
Author

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

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

2 participants