EDIT info TO debug too much info
This commit is contained in:
parent
a6a4328ed5
commit
b8fa3d2594
@ -40,16 +40,15 @@ func matchReaction(emoji string)func(*models.Update)bool{
|
||||
if update.MessageReaction != nil && len(update.MessageReaction.NewReaction) > 0{
|
||||
switch reaction := update.MessageReaction.NewReaction[0].Type; reaction {
|
||||
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{
|
||||
return true
|
||||
}
|
||||
}
|
||||
}else{
|
||||
log.Info("not the same character")
|
||||
return false
|
||||
}
|
||||
log.Info("not a reaction")
|
||||
log.Debug("not a reaction")
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user