diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-01-16 02:56:15 -0600 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-01-16 02:56:15 -0600 |
commit | bc91cdbc75b299a810da0fed2c09acf040620fbe (patch) | |
tree | 82aa637c13c1ccf5deb1e408775d31b1829972db /src/bin/lambo.rs | |
parent | 485753f30af12dcfc1bb528c6d6279cb15f1089b (diff) |
Add the student role to students.
Diffstat (limited to 'src/bin/lambo.rs')
-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; |