Fixed env stuff
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user