From b60a4120905b39b8691866c0aa35cd729a3f5d1b Mon Sep 17 00:00:00 2001 From: Joey Pollack Date: Thu, 30 May 2024 11:06:27 -0400 Subject: [PATCH] Remove the log on every reaction event --- src/main.rs | 2 +- src/utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 21c8860..752fa81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ impl EventHandler for Handler async fn reaction_add(&self, ctx: Context, add_reaction: Reaction) { // println!("reaction_add event"); - utils::Logger::log_message(ctx.clone(), &format!("reaction add event, emoji: {:#?}", add_reaction.emoji)).await; + // utils::Logger::log_message(ctx.clone(), &format!("reaction add event, emoji: {:#?}", add_reaction.emoji)).await; // todo!() commands::handle_reaction_add(ctx, add_reaction).await; diff --git a/src/utils.rs b/src/utils.rs index 6b3f7f3..334d282 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -32,7 +32,7 @@ impl Logger } } -pub async fn send_msg(ctx: Context, channel: ChannelId, msg: &str) -> Option +pub async fn send_msg(ctx: Context, channel: ChannelId, msg: impl std::fmt::Display) -> Option { match channel.say(&ctx.http, msg).await