From: MatthieuCoder Date: Sat, 31 Dec 2022 14:22:30 +0000 (+0400) Subject: fix crash on startup X-Git-Tag: v0.1~35 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=48442ca9a59826f0f0ed2da6e1a6b37f411dcc6c;p=matthieu%2Fnova.git fix crash on startup --- 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::(service_name)?; - pretty_env_logger::init(); - + // start the monitoring system if needed crate::monitoring::start_monitoring(&settings.monitoring); Ok(settings)