From dff54a4b41f87a98ee5f8e410caaf6ec4d51526a Mon Sep 17 00:00:00 2001 From: Joey Pollack Date: Thu, 30 May 2024 09:31:53 -0400 Subject: [PATCH] Adds the reaction log back so we can see what the emojis look like in the log --- src/commands/sm_server.rs | 7 +++++-- src/main.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/commands/sm_server.rs b/src/commands/sm_server.rs index 431fd3b..38e68e6 100644 --- a/src/commands/sm_server.rs +++ b/src/commands/sm_server.rs @@ -54,9 +54,12 @@ pub async fn parse_command(ctx: Context, msg: Message, server_id: GuildId) }; // TODO: Modify this to post the real Reaction Roles message - if (UserId::from(owner_id) == msg.author.id || UserId::from(BEL_WORK_USER_ID) == msg.author.id) && command_start == Some(".dotestmsg") + if (UserId::from(owner_id) == msg.author.id || + UserId::from(BEL_WORK_USER_ID) == msg.author.id) && + command_start == Some(".dorolesmsg") { - if let Some(msg) = utils::send_msg(ctx.clone(), ChannelId::from(SM_TEST_CHANNEL_ID), "Test message!").await + if let Some(msg) = utils::send_msg(ctx.clone(), + ChannelId::from(SM_TEST_CHANNEL_ID), "Test message!").await { println!("Test message id is: {:#?}", msg.id) } diff --git a/src/main.rs b/src/main.rs index f84f7b2..19b2677 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, &format!("reaction add event: {:#?}", add_reaction)).await; + utils::Logger::log_message(ctx.clone(), &format!("reaction add event: {:#?}", add_reaction)).await; // todo!() commands::handle_reaction_add(ctx, add_reaction).await;