Base bot for discord.js v14
This code is a sample optimized and organized bot using Discord.js v14, including Slash commands.
- Install Node.js (>16)
- Install Visual Studio Code
npm install
{
"token": "Yout bot token"
}
{
"prefix": "Your bot prefix (other than Slash commands)",
"owners": ["User IDs for bot owners"]
}
- To register Slash commands for your bot, you need to configure two constants in
deploy-commands.js
clientId: Your bot ID
(optional) guildId: Your guild ID (for guilds-only commands)
- Run
node deploy-commands.js
.
Join https://discord.gg/antiraid to get support.