diff options
| author | Nathan Perry <np@nathanperry.dev> | 2020-09-26 14:56:53 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2020-09-26 14:57:07 -0400 |
| commit | b5c6a0e5a65d13c639830296400ceb176f64c716 (patch) | |
| tree | 0198c24a204381da44807aa614162eb985d49512 /src/config.rs | |
| parent | b9a8db34b22c83ae1a4f5f446e54dc0d6be0bd40 (diff) | |
reorganize modules
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 13d015e..53801b6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -6,8 +6,18 @@ use serenity::{ }, }; +use dotenv::dotenv; +use lazy_static::lazy_static; use envconfig::Envconfig; +lazy_static! { + pub static ref CONFIG: Config = { + dotenv().ok(); + + Config::init().unwrap() + }; +} + #[derive(Envconfig)] pub struct Config { #[envconfig(from = "DATABASE_URL")] |
