diff options
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/lambo.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/lambo.rs b/src/bin/lambo.rs index e3e81a6..1134480 100644 --- a/src/bin/lambo.rs +++ b/src/bin/lambo.rs @@ -3,7 +3,7 @@ use clap::{value_parser, ArgAction, Parser}; use lambo::{config::Config, handlers::*}; use serenity::{all::GatewayIntents, Client}; use sqlx::sqlite::SqlitePoolOptions; -use std::path::PathBuf; +use std::{path::PathBuf, sync::Arc}; use stderrlog::StdErrLog; #[derive(Debug, Parser)] @@ -69,7 +69,13 @@ async fn main() -> Result<()> { })?; // Create the handlers. - let handler = MultiHandler(vec![Box::new(PresenceSetter), Box::new(X500Mapper(db))]); + let handler = MultiHandler(vec![ + Box::new(PresenceSetter), + Box::new(X500Mapper { + config: Arc::new(config.x500_mapper), + db, + }), + ]); // Start up the client. let intents = GatewayIntents::default() | GatewayIntents::GUILD_MEMBERS; |