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
Toggleable Math-Only mode (counting only using arithmetic expressions)
Cooldown for new server members
Timeout for losers
Timeout increment factor for every fail
Cheat-Mode (no losing)
/help command to get a list of all commands and useful information
/stats command for personal stats or the stats of another user
/global-stats command to see how other servers are doing (filter by current and all time best)
/best command to see the best count of the server so far
/top command for a leaderboard, sortable by counts or fails
/calc command to calculate arithmetic expressions (and see if they are a valid count)
/info command to get information about the bot and an invite link
Open up your favourite terminal (and navigate somewhere you want to download the repository to).
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.
Clone the repository and navigate to it. If you have Git installed, type
$ git clone https://github.com/NullDev/Arithmetica-Bot.git && cd Arithmetica-Bot
If not, download it here and extract the ZIP file.
Then navigate to the folder.
Install all dependencies by typing
$ npm install
Copy config/config.template.js and paste it as config/config.custom.js OR use npm run generate-config.
Configure it in your favourite editor by editing config/config.custom.js.
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
discord: dbl_token
OPTIONAL: DiscordBotList token to push commands and stats.