An open API service indexing awesome lists of open source software.

https://github.com/arasgungore/arithmator-discord-bot

A Node.js app that implements a Discord bot for performing basic and advanced arithmetic operations.
https://github.com/arasgungore/arithmator-discord-bot

arithmetic arithmetic-computation arithmetic-expression arithmetic-expression-evaluator arithmetic-operators arithmetics calculator calculator-app calculator-application discord discord-api discord-app discord-application discord-bot discord-js discord-token node node-js node-projects nodejs

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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:

```bash
cd discord-bot
```

2. Install dependencies:

```bash
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:

```bash
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](LICENSE) file for details.

## Acknowledgments

- Thanks to the [discord.js](https://discord.js.org/) library for making it easy to work with the Discord API.

## Author

👤 **Aras Güngöre**

- LinkedIn: [@arasgungore](https://www.linkedin.com/in/arasgungore)
- GitHub: [@arasgungore](https://github.com/arasgungore)