From bc91cdbc75b299a810da0fed2c09acf040620fbe Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Tue, 16 Jan 2024 02:56:15 -0600 Subject: Add the student role to students. --- src/bin/lambo.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/bin/lambo.rs') 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; -- cgit v1.2.3