How to Make a Discord Bot #1 (Discord.js Tutorial)
Вставка
- Опубліковано 7 лют 2025
- In this video, learn how to set up your first very own Discord bot.
NOTE: If you're having issues with your configuration file, make sure the file path in the code is preceded with ./ so the line will look like this
const { TOKEN, ID } = require('./config.json');
Node.js Download: nodejs.org/en/...
Discord Dev Portal: / discord
Help with Discord.js: discordjs.guide/
Leave a comment if you need help or guidance, and I'll try to respond.
#fade, #fffadedev, #discordjs, #nodejs, #programming, #discord, #discordbot, #tutorial
If you gonna continue this until music bot, ill follow your journey!
using atom in 2024 is crazy
hey i got issue w the command prompt and when i type F: it says " The system cannot find the drive specified." any other way to do the last part without using command prompt
in the cmd part at the end im getting an error of
const { TOKEN, ID } - require('./config.json');
^^^^^^^^^^^^^^
SyntaxError: Missing initializer in destructuring declaration
where may have i gone wrong and how can i fix it
If I'm reading correctly, it looks like you used a hyphen instead of an equals sign:
const { TOKEN, ID } = require("./config.json");
theres an error telling me it cant find config.json even though I made it and the setup is just like yours
nevermind, figured out how to fix it. if anyone else is having this issue add "./" behind config.json in the index.js so it would look like "require('./index.js');
I'll add this to the description