Skip to content

🤖 All you need to build you own Discord Bot

Notifications You must be signed in to change notification settings

nexus9111/node-discord-bot-boilerplate

Repository files navigation

NodeJS Discord bot boilerplate

This is a simple boilerplate for a Discord bot using NodeJS and Discord.js.

Prerequisites

  • Docker
  • Docker Compose

Usage

  1. Clone this repository
  2. Copy config.example.json to config.json and fill in the necessary values
  3. Run docker-compose up -d

Create new command

  1. Create a new file in the commands\utility directory
  2. 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
  },
};
  1. Rebuid the Docker container with docker-compose up -d --build

| You can find example of commands in the commands\utility directory.

License

About

🤖 All you need to build you own Discord Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published