Code Monkey home page Code Monkey logo

jeva's People

Contributors

ekinoxx0 avatar hyperbeastczech avatar thatziv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jeva's Issues

ReferenceError: GetNumPlayerIndices is not defined

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"
  }
}

Error

UnhandledPromiseRejectionWarning: ReferenceError: GetNumPlayerIndices is not defined

issue with discordbot starting

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

/on and /off dont work

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.