diff options
| author | seth <[email protected]> | 2023-11-30 23:30:00 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-01 07:12:49 -0500 |
| commit | 85402f9103b55dff65c6a6079c6902080e5a30a6 (patch) | |
| tree | eba04a9f9938ac1d7ac14cb5d7bc5e0fb8f4db16 /src/handlers/event/mod.rs | |
| parent | 41dfa94258215769b9d844875e79097d4a498770 (diff) | |
feat: add redis for reactboard
Diffstat (limited to 'src/handlers/event/mod.rs')
| -rw-r--r-- | src/handlers/event/mod.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/handlers/event/mod.rs b/src/handlers/event/mod.rs index bbfc642..a587c77 100644 --- a/src/handlers/event/mod.rs +++ b/src/handlers/event/mod.rs @@ -16,18 +16,16 @@ pub async fn handle( ) -> Result<()> { match event { Event::Ready { data_about_bot } => { - log::info!("logged in as {}", data_about_bot.user.name) + log::info!("Logged in as {}!", data_about_bot.user.name) } Event::Message { new_message } => { - message::handle(ctx, framework, new_message, &data.settings).await? + message::handle(ctx, framework, new_message, data).await? } - Event::ChannelPinsUpdate { pin } => pinboard::handle(ctx, pin, &data.settings).await, + Event::ChannelPinsUpdate { pin } => pinboard::handle(ctx, pin, data).await?, - Event::ReactionAdd { add_reaction } => { - reactboard::handle(ctx, add_reaction, &data.settings).await? - } + Event::ReactionAdd { add_reaction } => reactboard::handle(ctx, add_reaction, data).await?, _ => {} } |
