MidAma / base-bot-v14

Base bot for discord.js v14

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

base-bot-v14

Base bot for discord.js v14

Introduction

This code is a sample optimized and organized bot using Discord.js v14, including Slash commands.

Before use

  • Install Node.js (>16)
  • Install Visual Studio Code

Installation

npm install

Configuration

shadow.json

{
    "token": "Yout bot token"
}

config.json

{
    "prefix": "Your bot prefix (other than Slash commands)",
    "owners": ["User IDs for bot owners"]
}

Additional: Slash commands

  1. 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)

  1. Run node deploy-commands.js.

Support

Join https://discord.gg/antiraid to get support.

About

Base bot for discord.js v14

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 100.0%