Fixed env stuff

This commit is contained in:
Benjamin Sherriff
2024-05-04 14:00:54 -04:00
parent e497ce243e
commit 345dc105df
6 changed files with 32 additions and 15 deletions

View File

@@ -16,8 +16,6 @@ use actix_cors::Cors;
use actix_web::{HttpServer, App, web};
use crate::bot::handler::Handler;
use dotenv::dotenv;
mod auth;
mod dnd;
mod bot;
@@ -26,7 +24,7 @@ mod users;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
dotenv().ok();
dotenv::dotenv().ok();
env_logger::init_from_env(env_logger::Env::default().filter_or("RUST_LOG", "warn,siren=info"));
storage::init().await;
match env::var("DATA_DIR_PATH") {