Giter Site home page Giter Site logo

arithmetica-bot's Introduction

Arithmetica-Bot

Discord Bot for counting. Allows arithmetic expressions.


โ“ What does it do?

Your average counting bot. Except you can count with arithmetic expressions!


๐Ÿ“ก Invite the bot

Invite

The link above will invite a bot hosted by me that uses the latest version of this repo.
Alternatively you can host the bot yourself. Instructions below โฌ


โญ Features

  • Set a counting channel via slash commands
  • Count normally (1, 2, 3, 4)
  • Count with arithmetic expressions (5^0, sqrt(4), i^2+4, log(10000, 10))
  • Slash commands
  • Arithmetic is toggleable
  • Multi-language support (Can be set on every Discord server individually)
    • English (Peer reviewed โœ…)
    • German (Peer reviewed โœ…)
    • French (Peer reviewed โœ…)
    • Spanish
    • Japanese
    • Chinese
    • Russian
  • Easy to set up
    • Set the channel and you're good to go (/set-channel)
    • Optionally, set server language (/set-language)
    • Optionally, disable arithmetic (/toggle-arithmetic)
  • Easy to self-host
    • No external database needed
    • Easy configuration system
    • Install instructions provided below
  • Admin only commands
  • Prevent persons from counting multiple times in a row
  • Configurable timeout for losers (Planned)

๐Ÿ’  Feature requests & Issues

Feature request or discovered a bug? Please open an Issue here on GitHub.


๐Ÿ”ง Setup

  1. Open up your favourite terminal (and navigate somewhere you want to download the repository to).

  2. Make sure you have NodeJS installed (>= v20.0.0). Test by entering
    $ node -v
    If this returns a version number, NodeJS is installed. If not, get NodeJS here.

  3. Clone the repository and navigate to it. If you have Git installed, type
    $ git clone https://github.com/NullDev/Discord-RoleShop.git && cd Discord-RoleShop
    If not, download it here and extract the ZIP file.
    Then navigate to the folder.

  4. Install all dependencies by typing
    $ npm install

  5. Copy config/config.template.js and paste it as config/config.custom.js

  6. Configure it in your favourite editor by editing config/config.custom.js. OR use npm run generate-config

  7. Start it in development mode by running
    $ npm start
    or start in production mode
    $ npm run start:prod


๐Ÿ”ฉ Configuration

Once the config has been copied like described in Step 4, it can be changed to your needs:

Config Key Description Data Type Default value
discord:
bot_token
Auth Token of the Discord bot. Can be created here. String N/A

arithmetica-bot's People

Contributors

ilovemyhous avatar nulldev avatar oakatsume avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.