diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2022-12-31 18:22:30 +0400 |
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2022-12-31 18:22:30 +0400 |
| commit | 48442ca9a59826f0f0ed2da6e1a6b37f411dcc6c (patch) | |
| tree | d0d74310beb42488073457faa164850bdeef08a5 | |
| parent | 32af5021cb2bf558d6a0c21b863f16755d475307 (diff) | |
fix crash on startup
| -rw-r--r-- | docs/docs/quickstart.md | 7 | ||||
| -rw-r--r-- | libs/shared/src/config.rs | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/docs/quickstart.md b/docs/docs/quickstart.md index 216552e..6447ef7 100644 --- a/docs/docs/quickstart.md +++ b/docs/docs/quickstart.md @@ -19,3 +19,10 @@ hold tight this is going to be fast. ## Setting up a nova instance +Clone the [example repo](https://github.com/discordnova/nova-quickstart.git) like so + +`git clone https://github.com/discordnova/nova-quickstart.git`, + +In this folder, find the `config.yml.example` file and rename it to match `config.yml` + +Next, you need to fill all the environment variables to match your discord bot. diff --git a/libs/shared/src/config.rs b/libs/shared/src/config.rs index 5e8cb51..52137a3 100644 --- a/libs/shared/src/config.rs +++ b/libs/shared/src/config.rs @@ -49,8 +49,7 @@ where // try to load the config settings.config = config.get::<T>(service_name)?; - pretty_env_logger::init(); - + // start the monitoring system if needed crate::monitoring::start_monitoring(&settings.monitoring); Ok(settings) |
