My Simple Discord Bot with Slash Commands
Description:
This is a simple Discord bot that performs basic functions in your Discord server using slash (/) commands. It's designed to be easy to use and a great starting point for building more complex bots with slash commands.
Features:
- [ /hi ] Command 1: Says Hello.
- [ /intro ] Command 2: Introduces itself.
- [ /server ] Command 3: Describes the server details.
- [ /user ] Command 4: Describes info about the user.
- [ /bye ] Command 5: Says Bye.
- [ /spam ] Command 6: Spams a Word for 20 times.
- [ /translate ] Command 7: Translate a word from English to French
Getting Started:
Prerequisites
- [Node.js](https://nodejs.org/) installed on your system.
- A Discord bot token. You can create a bot and obtain its token from the [Discord Developer Portal](https://discord.com/developers/applications).Installation
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/your-discord-bot.git
-
Navigate to the bot's directory:
cd your-discord-bot -
Create a
.jsonfile in the project root and add your Discord bot token:DISCORD_BOT_TOKEN=your-bot-token-here
-
Start the bot:
node index.js node deploy-commands.js
-
The bot will be online in your Discord server and ready to respond to slash commands.
To interact with the bot, simply type / in the chat and select the appropriate slash command:
- Use
/hito say hello. - Use
/byeto say bye.
You can customize the bot's behavior by editing the config.json file.
{
"clientId": "THE_CLIENT_ID",
"token": "THE_TOKEN_ID _OF_THE_BOT"
}This is how the bot will be once it is finished

If you'd like to contribute to this project, feel free to fork the repository, make your changes, and submit a pull request.
- Thanks to the Discord.js library for making it easy to build Discord bots with slash commands.
Happy Botting with Slash Commands!
By
-Hari Aravindh