jevajs / jeva Goto Github PK
View Code? Open in Web Editor NEWA monorepo for code used in videos/tutorials for Jeva. Created and maintained by @thatziv
Home Page: https://discord.gg/PAaZ86d
License: MIT License
A monorepo for code used in videos/tutorials for Jeva. Created and maintained by @thatziv
Home Page: https://discord.gg/PAaZ86d
License: MIT License
Discord Bot logged in as SOUSA#9586
(node:14380) UnhandledPromiseRejectionWarning: ReferenceError: GetNumPlayerIndices is not defined
at setStatus (C:\Users\vasco\Desktop\discord Bot\utils\index.js:18:9)
at updatePlayerCount (C:\Users\vasco\Desktop\discord Bot\utils\index.js:22:9)
at Client.<anonymous> (C:\Users\vasco\Desktop\discord Bot\bot.js:8:3)
at Client.emit (events.js:323:22)
at WebSocketManager.triggerReady (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:253:17)
at WebSocketManager.checkReady (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:224:61)
at Object.module.exports [as GUILD_CREATE] (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\websocket\handlers\GUILD_CREATE.js:11:17)
at WebSocketManager.handlePacket (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:201:31)
at WebSocketShard.onPacket (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:259:29)
at WebSocketShard.onMessage (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:310:10)
(node:14380) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14380) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:14380) UnhandledPromiseRejectionWarning: Error [WS_CONNECTION_TIMEOUT]: The connection to the gateway timed out.
at Timeout._onTimeout (C:\Users\vasco\Desktop\discord Bot\node_modules\discord.js\src\client\Client.js:261:16)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
(node:14380) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
I get this error when starting the bot, I have the same code as you.
this is my package.json
{
"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"
}
}
hey, thanks for great tut but is this still working? cuz it is not working for me (no error) just nothing
Copied your code into my server folder, and now when I try to connect it says Couldn't load resource speedometer.
Not sure what's wrong
UnhandledPromiseRejectionWarning: ReferenceError: GetNumPlayerIndices is not defined
The bot is Online but it doesn't change status, status doesn't exist at all.
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
Hey Jeva, I like you work a lot. I just wanna ask why my /on and /off is not working to make the banner dissappear. I copied your script that you post. Is there an update about it to make the script run?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.