EDIT info TO debug too much info

This commit is contained in:
maximo tejeda 2025-02-23 09:57:30 -04:00
parent a6a4328ed5
commit b8fa3d2594

View File

@ -40,16 +40,15 @@ func matchReaction(emoji string)func(*models.Update)bool{
if update.MessageReaction != nil && len(update.MessageReaction.NewReaction) > 0{ if update.MessageReaction != nil && len(update.MessageReaction.NewReaction) > 0{
switch reaction := update.MessageReaction.NewReaction[0].Type; reaction { switch reaction := update.MessageReaction.NewReaction[0].Type; reaction {
case models.ReactionTypeTypeEmoji: case models.ReactionTypeTypeEmoji:
log.Info("emoji message reaction encounter", "reactions", update.MessageReaction.NewReaction) log.Debug("emoji message reaction encounter", "reactions", update.MessageReaction.NewReaction)
if update.MessageReaction.NewReaction[0].ReactionTypeEmoji.Emoji == emoji{ if update.MessageReaction.NewReaction[0].ReactionTypeEmoji.Emoji == emoji{
return true return true
} }
} }
}else{ }else{
log.Info("not the same character")
return false return false
} }
log.Info("not a reaction") log.Debug("not a reaction")
return false return false
} }