This Discord bot is created using Discord API in Node.js and JavaScript. It performs the following tasks:
/ping
: Replies with "Pong"/add [num1, num2]
: Adds two numbers/gen-gif
[query?]: Generates a GIF randomly or based on a search query
To use this bot, follow these steps:
- Clone this repository to your local machine.
- Install the required dependencies by running
npm install
. - Create a new Discord application and obtain the bot token.
- Replace tokens in the
env.js
file with your tokens. - Run the command
npm run deploy
. To deploy the discord commands on the server. - Run the bot using
npm run start
.[Make sure to use node version >= 18.20.1]
Once the bot is running and added to your Discord server, you can use the commands mentioned above to interact with it.
If you want to contribute to this project, feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.