From 483622df09f4cb7b0a56f0478b95d1c62fef968b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 7 May 2019 08:11:43 +0900 Subject: [PATCH] Disable reaction on mentions --- bots/discord/OnMessageCreate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bots/discord/OnMessageCreate.go b/bots/discord/OnMessageCreate.go index 68788a49..b0a43421 100644 --- a/bots/discord/OnMessageCreate.go +++ b/bots/discord/OnMessageCreate.go @@ -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 {