Browse Source

Bump as a bool instead of time

master
Gregory Rudolph 3 years ago
parent
commit
51f9f10b17
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      discordMessage.go

2
discordMessage.go

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

Loading…
Cancel
Save