Giter Site home page Giter Site logo

focus04 / focus Goto Github PK

View Code? Open in Web Editor NEW
151.0 11.0 41.0 3.29 MB

Professional Discord moderation bot.

Home Page: https://focus04.github.io/Focus/

JavaScript 100.00%
discord discord-bot discord-js nodejs mongodb mongodb-atlas keyv node-js node-fetch

focus's Issues

Fichier env

hello, would it be possible to have an example of the Env file? because he is not present

pls help

ternal/validators.js:124throw new ERR_INVALID_ARG_TYPE(name, 'string', value);^TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefinedat validateString (internal/validators.js:124:11)at Module.require (internal/modules/cjs/loader.js:954:3)at require (internal/modules/cjs/helpers.js:92:18)at loadStore (/home/container/node_modules/keyv/src/index.js:18:15)at new Keyv (/home/container/node_modules/keyv/src/index.js:39:22)at Object. (/home/container/Commands/Debug/serversettings.js:3:28)at Module._compile (internal/modules/cjs/loader.js:1072:14)at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)at Module.load (internal/modules/cjs/loader.js:937:32)at Function.Module._load (internal/modules/cjs/loader.js:778:12) {code: 'ERR_INVALID_ARG_TYPE'}

Invalid Token

Grabbed my token via Discord Application, pasted next to... "token="...

Error [TOKEN_INVALID]: An invalid token was provided.

I also even regenerated the token and tried again, any help?

TypeError: Cannot read property 'toString' of undefined

here is my entire error...

(node:3355) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined
at Object.execute (/Users/juantan/Downloads/focus/Commands/Info/help.js:29:75)
at module.exports (/Users/juantan/Downloads/focus/Events/Messages/message.js:16:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3355) 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:3355) [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.

My bot is not starting someone help me

internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:92:18)
    at loadStore (C:\Users\sayad\OneDrive\Desktop\090620\REAA\Discord utility bot\node_modules\keyv\src\index.js:18:15)
    at new Keyv (C:\Users\sayad\OneDrive\Desktop\090620\REAA\Discord utility bot\node_modules\keyv\src\index.js:39:22)
    at Object.<anonymous> (C:\Users\sayad\OneDrive\Desktop\090620\REAA\Discord utility bot\Commands\Debug\serversettings.js:3:28)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14) {
  code: 'ERR_INVALID_ARG_TYPE'
}

this is what it says when i try and start the bot

Make a README.md file.

Make a README file, so that new people who view this repo
Get an idea on what this bot is bout and how it works.

The bot isnt starting

(node:22384) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\Events\Init\ready.js:15:41
    at Map.forEach (<anonymous>)
    at module.exports (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\Events\Init\ready.js:14:23)
    at Client.emit (events.js:375:28)
    at WebSocketManager.triggerClientReady (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
    at WebSocketManager.checkShardsReady (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
    at WebSocketShard.<anonymous> (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)   
    at WebSocketShard.emit (events.js:375:28)
    at WebSocketShard.checkReady (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)      
    at WebSocketShard.onPacket (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)        
(Use `node --trace-warnings ...` to show where the warning was created)
(node:22384) 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:22384) [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:22384) UnhandledPromiseRejectionWarning: TypeError: punishments.get is not a function
    at Timeout._onTimeout (C:\Users\sayad\OneDrive\Desktop\Dynomixcs utils\Events\Init\ready.js:21:38)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
(node:22384) 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)

This is what i get when i try and start the bot

keyv

node:internal/validators:119
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Module.require (node:internal/modules/cjs/loader:998:3)
at require (node:internal/modules/cjs/helpers:102:18)
at loadStore (/home/private/focus/node_modules/keyv/src/index.js:18:15)
at new Keyv (/home/private/focus/node_modules/keyv/src/index.js:39:22)
at Object. (/home/private/focus/Commands/Debug/serversettings.js:3:28)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
code: 'ERR_INVALID_ARG_TYPE'
}
help me?

help

when i type node . it does not show the bot appearing online nor can i used the cmds so how do i start the bot

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.