Disable reaction on mentions

This commit is contained in:
Eduard Urbach 2019-05-07 08:11:43 +09:00
parent 9810eb7276
commit 483622df09

View File

@ -37,12 +37,12 @@ func OnMessageCreate(s *discordgo.Session, msg *discordgo.MessageCreate) {
}
// Has the bot been mentioned?
for _, user := range msg.Mentions {
if user.ID == discord.State.User.ID {
s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" :heart:")
return
}
}
// for _, user := range msg.Mentions {
// if user.ID == discord.State.User.ID {
// s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" :heart:")
// return
// }
// }
// Has the user invoked a command?
for _, cmd := range allCommands {