A recode of bot bilby so it doesn't crash every 5 seconds.
This project was designed with The Heeler House as it's main target, so many of the functionality (Text Commands & Events) have been tailored specifically to THH. While you can change the config (in testingIds.json) to make the bot work for your own server, it is recommended that you install and use the bot only for development and testing purposes.
To install and run the bot, make sure that you have the following things set up/installed:
- MongoDB (https://www.mongodb.com/docs/manual/administration/install-community/)
- NodeJS (https://nodejs.org/en)
- A MinIO instance (https://min.io/download?license=agpl)
- A Discord Bot (instruction for how to setup one can be found at MAKE_A_BOT_BILBY.md)
- The server, with the following required channels
- Clone the repo into your favorite directory (or if you don't have git, you can download the repo as a ZIP instead)
git clone https://github.com/The-Heeler-House/bot-bilby- Change directory into the
bot-bilbyfolder, and install the required package using npm:
npm i- Create a new file in the root of the directory called
.env(note the dot at the start of the file). This will be where you'll store your secret data. - Inside the
.envfile, fill in the following information (replace the dot between the quotation mark with actual value):
TOKEN="..." # the bot token
PREFIX="..." # text command prefix, can be any length.
MONGO_URL="" # connection URL for MongoDB database (should be in the form of: "mongodb://...")
API_PORT=8080 # port that the BilbyAPI service will listen on. used for non-bilby related projects where data from bilby is needed.
S3_ENDPOINT="..." # Endpoint to access S3/MinIO instance
S3_ACCESS_KEY="..." # Access key for S3/MinIO instance
S3_SECRET_KEY="..." # Secret key for S3/MinIO instance- Create a file named
local.jsonin theconfigdirectory. Setup the configuration file by following thedefault.jsonfile while filling the IDs specifically for your server.
Once everything have seen set up, compile and run the bot using:
npm run bot-unix # for people using MacOS/Linux
or
npm run bot-windows # for people using Windows
Contributors: @jalenluorion, @sudoker0, and @CloudburstSys (Leah).
License: MIT