This template is configured with postgres and serenity.
Clone the repo with
git clone https://github.com/DankDumpster/rust-discord-bot-template
Build and run it for the first time
cargo run
This will ask you to enter each of the configuration values. If you wish edit the physical config.yml file then type "n" when it asks you if you wish to enter the config details and the bot will close and generate a predefined config.yml file for you to configure.
If anything goes wrong for any reason you can manually make a config.yml in the root with this:
---
token: ""
prefix: ;
db_uri: "postgres://postgres:postgres@localhost/postgres"
Now run it again and it should work
cargo run
To set a custom config location, set the enviroment variable "CONFIG_PATH" and point it to a file.