Setting up bot

Guide of how to set up bot for the first time

1- Setting up config.js

Config.js is the file which gives you option to control over your bot, like enabling/disabling features, customizing preferences and more...

  1. Setting up general bot informations:

OWNER_IDS: [""],
SUPPORT_SERVER: "",

Here you can pass owner IDs (developers team members IDs) so you can access to OWNER Commands Also you can add your support server invite URL for buttons

  1. Setting up prefix commands:

PREFIX_COMMANDS: {
  ENABLED: true, // Enable/Disable prefix commands
  DEFAULT_PREFIX: "!", // Default prefix for the bot
},

Here you can enable or disable prefix commands as you want, also you can setup the global bot prefix

  1. Setting up Slash Commands:

INTERACTIONS: {
  SLASH: false, // Should the interactions be enabled
  CONTEXT: false, // Should contexts be enabled
  GLOBAL: false, // Should the interactions be registered globally
  TEST_GUILD_ID: "", // Guild ID where the interactions should be registered. [** Test you commands here first **]
},

PropertyTypeDescription

SLASH

Boolean

Whether the Slash Commands are enabled or not (set it to true to enable)

CONTEXT

Boolean

Whether the Context Menus are enabled or not (set it to true to enable)

GLOBAL

Boolean

Whether the Slash Commands should be globally registered or not (set it to true to enable)

TEST_GUILD_ID

String

Guild ID where interactions should be registered [**here you should try your slash command for the first itme**]

Global slash commands can take up to 1 hour to be shown across all guilds

Last updated