From 1f14b441883048de31c7514bd9949f574285561b Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 15 Feb 2026 23:40:51 +0100 Subject: [PATCH] feat(main): adding the emoji loading --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ac05a5f..e13e498 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ mod commands; +mod config; mod database; mod events; mod models; @@ -10,6 +11,8 @@ use sqlx::postgres::PgPoolOptions; use sqlx::{Pool, Postgres, migrate}; use std::env; +use self::config::emoji::EmojiConfig; + #[tokio::main] async fn main() { println!("\n"); @@ -32,7 +35,10 @@ async fn main() { .run(&db) .await .expect("❌ | Failed to run migrations"); - println!("✅ | Migrations applied\n"); + println!("✅ | Migrations applied"); + + let emojis: EmojiConfig = EmojiConfig::load().expect("❌ | Failed to load emojis.toml"); + println!("✅ | Emojis loaded\n"); let intents: GatewayIntents = GatewayIntents::AUTO_MODERATION_CONFIGURATION | GatewayIntents::AUTO_MODERATION_EXECUTION @@ -52,6 +58,7 @@ async fn main() { commands: commands::import(), events: events::import(), database: db, + emojis: emojis, }; let mut client: Client = Client::builder(&token, intents)