Disable reaction on mentions
This commit is contained in:
parent
9810eb7276
commit
483622df09
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user