diff --git a/youmubot/src/main.rs b/youmubot/src/main.rs index 54e765b..bff0c7a 100644 --- a/youmubot/src/main.rs +++ b/youmubot/src/main.rs @@ -2,7 +2,7 @@ use dotenv; use dotenv::var; use serenity::{ framework::standard::{DispatchError, StandardFramework}, - model::{channel::Message, gateway}, + model::{channel::{Message, Reaction}, gateway}, }; use youmubot_prelude::*; @@ -25,6 +25,10 @@ impl EventHandler for Handler { println!("{:?}", message); self.hooks.iter().for_each(|f| f(&mut ctx, &message)); } + + fn reaction_add(&self, ctx: Context, reaction: Reaction) { + ctx.data.get_cloned::().send(reaction); + } } fn main() {