Bump as a bool instead of time

This commit is contained in:
2021-05-05 23:02:56 -04:00
parent 17141a8ea4
commit 51f9f10b17

View File

@ -49,7 +49,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
go bumpTimer(s)
return
}
if time.Since(config.BumpTime) > 2*time.Hour {
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.HasPrefix(m.Content, s.State.User.Mention()) {