Dani's Discord utility bot!
The bots configuration is managed by an environment file
When you open the project, you will see a .example.env file. You need to rename it to just .env. The only fields that are essential for running the bot are token, mongodb_connection_url and OWNER_ID.
OWNER_ID = ""
MONGODB_URL = "mongodb+srv://[dbuser]:[password]@cluster0.[endpoint]/?retryWrites=true&w=majority"
BOT_TOKEN = ""The token refers to the application token, which you can get via the Discord Developer Portal. Create a new one, go to the "Bot" tab, and get the token.
As it stands, you'll need to host your own mongodb server.
To get started with this quickly, we recommend installing Docker and using the mongo image.
To get the most basic mongodb server running with this, run docker run --name mongo -p 27017:27017 -d mongo:6.0.6.
If you run it like that, your mongodb_connection_url will be mongodb://localhost:27017/
After you are done with the configuration, run a local docker container.
Install Docker Desktop for easier setup, then run the following commands in a local terminal inside your folder:
docker-compose build
docker compose upEverything else can stay the same. If you open docker desktop, or use the VSCode Extension, you should see a container called "dani_server_utils", you can run it by clicking the plus button.
Some of the current commands include:
- a manager for our staff applications (/staffapp)
- a link detection feature
- server channel configuration commands (like /autoslow, /poll, and /anchor)
- and more to come!
NOTE: You should run bun i in the root after pulling, every time in case of there being dependency changes.