Dont show bump request on commands

This commit is contained in:
2021-05-06 08:25:06 -04:00
parent 42969ca27c
commit 6bdc997cbe

View File

@ -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 {