A Node.js app that implements a Discord bot for performing basic and advanced arithmetic operations.
- Supports basic arithmetic operations (addition, subtraction, multiplication, division).
- Supports advanced mathematical operations (logarithm, exponentiation, sine, cosine, tangent, cotangent).
- Easy to use with the
!calculate
command.
-
Navigate to the project directory:
cd discord-bot
-
Install dependencies:
npm install
-
Create a
.env
file in the project root and add your Discord bot token:DISCORD_TOKEN=your_bot_token_here
-
Run the bot:
node bot.js
-
Invite the bot to your Discord server using the OAuth2 URL generated in the Discord Developer Portal.
-
In any text channel, type
!calculate
followed by a mathematical expression to see the result.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the discord.js library for making it easy to work with the Discord API.
👤 Aras Güngöre
- LinkedIn: @arasgungore
- GitHub: @arasgungore