Adds the reaction log back so we can see what the emojis look like in the log

main
Joey Pollack 2 years ago
parent a87321f531
commit dff54a4b41

@ -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 // 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) println!("Test message id is: {:#?}", msg.id)
} }

@ -47,7 +47,7 @@ impl EventHandler for Handler
async fn reaction_add(&self, ctx: Context, add_reaction: Reaction) async fn reaction_add(&self, ctx: Context, add_reaction: Reaction)
{ {
// println!("reaction_add event"); // 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!() // todo!()
commands::handle_reaction_add(ctx, add_reaction).await; commands::handle_reaction_add(ctx, add_reaction).await;

Loading…
Cancel
Save