diff --git a/discordMessage.go b/discordMessage.go index c9d9f8a..a91b116 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -19,6 +19,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { } } else { log.LogDebug("strings.Contains(m.Content, s.State.User.ID) was false for %+v", m.Content) + if bump { + s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("%+v please say \"!d bump\" without the quotes to bump our server :)", m.Author.Mention())) + } } if m.Author.ID == s.State.User.ID || m.Author.Bot { return @@ -49,9 +52,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { go bumpTimer(s) return } - if bump { - s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("%+v please say \"!d bump\" without the quotes to bump our server :)", m.Author.Mention())) - } + if strings.Contains(m.Content, s.State.User.ID) { log.LogDebug("%+v contained %+v", m.Content, s.State.User.ID) for _, cmd := range commands {