Browse Source

Dont show bump request on commands

master
Gregory Rudolph 3 years ago
parent
commit
6bdc997cbe
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 7
      discordMessage.go

7
discordMessage.go

@ -19,6 +19,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { @@ -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) { @@ -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 {

Loading…
Cancel
Save