Skip to content

A Node.js app that implements a Discord bot for performing basic and advanced arithmetic operations.

License

Notifications You must be signed in to change notification settings

arasgungore/arithmator-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

arithmator-discord-bot

A Node.js app that implements a Discord bot for performing basic and advanced arithmetic operations.

Features

  • 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.

Getting Started

Installation

  1. Navigate to the project directory:

    cd discord-bot
  2. Install dependencies:

    npm install
  3. Create a .env file in the project root and add your Discord bot token:

    DISCORD_TOKEN=your_bot_token_here
    

Usage

  1. Run the bot:

    node bot.js
  2. Invite the bot to your Discord server using the OAuth2 URL generated in the Discord Developer Portal.

  3. In any text channel, type !calculate followed by a mathematical expression to see the result.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the discord.js library for making it easy to work with the Discord API.

Author

👤 Aras Güngöre