refactor, cleanup

This commit is contained in:
2024-10-11 09:29:33 -04:00
parent 07a1e9277e
commit 2688d2304e
35 changed files with 66 additions and 127 deletions

View File

@@ -9,7 +9,7 @@ use reqwest::Client as HttpClient;
use crate::bot::handler::Handler;
mod bot;
mod database;
mod data;
mod dnd;
mod error;
@@ -23,7 +23,7 @@ impl TypeMapKey for HttpKey {
async fn main() {
dotenv::dotenv().ok();
env_logger::init_from_env(env_logger::Env::default().filter_or("RUST_LOG", "warn,siren=info"));
if let Err(err) = database::initialize().await {
if let Err(err) = data::initialize().await {
log::error!("Failed to initialize database: {err}");
return;
};