TUT Moa Bot
Discord bot for TUT Server. Math utils and daily integral helpers.
Feature request or discovered a bug? Please open an Issue here on GitHub.
- Open up your favourite terminal (and navigate somewhere you want to download the repository to).
- Make sure you have NodeJS installed (>= v22.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/Moa-Bot.git && cd Moa-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.jsOR usenpm run generate-config. - Configure it in your favourite editor by editing
config/config.custom.js. - [LINUX ONLY]: Install LaTeX dependencies:
$sudo ./setup_latex.sh - Start it in development mode by running
$npm start
or start in production mode
$npm run start:prod
or (recommended), use PM2
$pm2 start pm2.ecosystem.json
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: bot_owner_ids |
OPTIONAL: Discord IDs of Bot owners | String-Array | [] |
discord: wolfram_appid |
OPTIONAL: Wolfram Alpha App ID | String | N/A |
discord: total_shards |
Number of shards to use or "auto" for automatic sharding | number | "auto" | 1 |
ids: guild_id |
ID of the main server where special features are enabled | string | N/A |
ids: daily_int_channel |
ID of the daily integral channel | string | N/A |
ids: meme_channel |
ID of the meme channel | string | N/A |
ids: general_channel |
ID of the general channel | string | N/A |
ids: daily_int_role |
ID of the daily integral role | string | N/A |
ids: moabot |
ID of the Moa Bot user | string | N/A |