|
|
@ -19,6 +19,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
log.LogDebug("strings.Contains(m.Content, s.State.User.ID) was false for %+v", m.Content) |
|
|
|
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 { |
|
|
|
if m.Author.ID == s.State.User.ID || m.Author.Bot { |
|
|
|
return |
|
|
|
return |
|
|
@ -49,9 +52,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { |
|
|
|
go bumpTimer(s) |
|
|
|
go bumpTimer(s) |
|
|
|
return |
|
|
|
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) { |
|
|
|
if strings.Contains(m.Content, s.State.User.ID) { |
|
|
|
log.LogDebug("%+v contained %+v", m.Content, s.State.User.ID) |
|
|
|
log.LogDebug("%+v contained %+v", m.Content, s.State.User.ID) |
|
|
|
for _, cmd := range commands { |
|
|
|
for _, cmd := range commands { |
|
|
|