NanduWasTaken / DiscordBot-Slash-Commands

Simple Discord Bot with Slash Command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DiscordBot-Slash-Commands

A simple discord bot equiped with slash command & event handlers to start your journey.
Available commands:-

/avatar:- shows users avatar.
/option:- echo backs a message.
/ping:- replies with pong.
/prune:- deletes a specfic amount of messages.
/server:- shows server info.
/user:- shows user info.
/modal:- shows a example modal.

Forking the github respository

Type this into the terminal git clone https://github.com/NanduWasTaken/DiscordBot-Slash-Commands.git

Setting Up Env File.

Rename ".env.example" file into ".env"

  TOKEN = "bot_token"
  CLIENT_ID = "bot_id"
  STATUS = "dnd"
  ACTIVITY_NAME = "SCRIBLLING THINGS"

Replace bot_token with your bot token you can obtain your bot token from discord developer portal.

Replace bot_id with your bot's client id.


Optional Configuration.

Status name can be changed by changing the SCRIBLLING THINGS with whatever you want it to be.
Status dnd can be changed into 'dnd', 'idle', 'online' and 'invinsible'.
If you want to change your activity type of your bot go into ready.js in events folder and change it.

Deleting Your Commands.

To delete one of your slash commands you have delete the command file which is located in the commands directory then restart the bot.
Note: Your Slash Command Registers/Reloads Automatically When Your Bot Starts.

Starting Your Bot

To start your bot. Type node index.js into your terminal.

About

Simple Discord Bot with Slash Command.

License:MIT License


Languages

Language:JavaScript 100.0%