Command & Event Handling | Discord.js V14 Revamped | #2

preview_player
Показать описание
Source code is patreon exclusive!

Useful links:

Shared files:

Timestamps:
00:00 - Start
00:20 - Creating a new project
01:30 - Creating the folder + file structure
03:55 - .env
06:30 - Expanding the folder + file structure
24:05 - Expanding the file structure
35:30 - Expanding the file structure
42:00 - Creating an example command to showcase
46:50 - Testing the bot and debugging the code where needed
Рекомендации по теме
Комментарии
Автор

You deserve more recognition! It's easy to follow and great for new learners too.

veiummng
Автор

Very advanced. Never seen a bot been made like this. AMAZING ❤

PAdventures
Автор

Good as always!

Edit: GOD DAMN THIS IS ADVANCED

Emma.Edithy
Автор

Love your tutorial, it's amazing. Thanks.

rickysambora
Автор

(this is a translation) I have a question, is this supposed to be limited to a single server? If so, how can I run my bot's commands on other servers?

dani_
Автор

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Array

Sheep
Автор

Im confused, if i want to make an economy bot with lets say commands/economy,
how would i implement so i could do like commands/economy/jobs and then add my files to support jobs, etc?

Edit: I solved it 5 minutes after posting.

NghtMarz_z
Автор

eventHandler dont work and there is no errors, how to fix that, i added so much try catch to get an error messages, there is no errors

dimasxxxam
Автор

I would love to see this integrated with typescript, working with pure javascript especially with this type of data doesn't seem like a good idea.

violet_alex
Автор

I don't know why i get this error, can someone help?
[nodemon] restarting due to changes...
[nodemon] starting `node src/index.js`
[INFO] Vivy is online!
An error occured inside the command registery:
TypeError: exceptions.includes is not a function

Соми-рч
Автор

I am getting an error in my command prompt saying
```
[INFO] V7 is Online!
[ERROR] An error occured inside the command registery:
TypeError: (intermediate is not a function
```

VortexVaibhav
Автор

What exactly the point of having subcommands if all subcommands executing the same run function? they all have the same functionality...

majoramarii
Автор

how do you make the bot so it can only register the command in specific servers? i already tried to make the testserverid an array but it throws an error.

im_andrei
Автор

Is it worth updating to this ? Im wondering bc is a lot of work

AntonisRsmn
Автор

[REMOVED DUE TO PRIVACY REASONS] nodemon
[nodemon] 3.1.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js, mjs, cjs, json
[nodemon] starting `node src/index.js`
node:internal/errors:541
throw error;
^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at Object.readdirSync (node:fs:1498:10)
at module.exports
at module.exports
at Object.<anonymous>
at Module._compile
at Module._extensions..js
at Module.load
at Module._load
at [as runMain]
at {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.16.0
[nodemon] app crashed - waiting for file changes before starting...

does anyone know how to fix this?

pcifier
Автор

~/OrangeMC-Bot$ nodemon
[nodemon] 3.1.3
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js, mjs, cjs, json
[nodemon] starting `node src/index.js`
error: new Error("Used disallowed intents")
^

Error: Used disallowed intents
at callListener
at WebSocket.onClose
at WebSocket.emit (node:events:518:28)
at WebSocket.emitClose
at TLSSocket.socketOnClose
at TLSSocket.emit (node:events:530:35)
at node:net:337:12
at TCP.done (node:_tls_wrap:657:7)

Node.js v20.12.2
[nodemon] app crashed - waiting for file changes before starting...


:c

QuickDropeado