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?
|
// Has the bot been mentioned?
|
||||||
for _, user := range msg.Mentions {
|
// for _, user := range msg.Mentions {
|
||||||
if user.ID == discord.State.User.ID {
|
// if user.ID == discord.State.User.ID {
|
||||||
s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" :heart:")
|
// s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" :heart:")
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Has the user invoked a command?
|
// Has the user invoked a command?
|
||||||
for _, cmd := range allCommands {
|
for _, cmd := range allCommands {
|
||||||
|
Loading…
Reference in New Issue
Block a user