This is a simple boilerplate for a Discord bot using NodeJS and Discord.js.
- Docker
- Docker Compose
- Clone this repository
- Copy
config.example.json
toconfig.json
and fill in the necessary values - Run
docker-compose up -d
- Create a new file in the
commands\utility
directory - Add the following code to the file:
const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("COMMAND_NAME")
.setDescription("COMMAND_DESCRIPTION"),
// Add options if needed
async execute(interaction) {
// Your code here
},
};
- Rebuid the Docker container with
docker-compose up -d --build
| You can find example of commands in the commands\utility
directory.
- Author: Joss C.
- Contributors: Pierre-Adrien V.