From 51f9f10b174936d0abdd673fb246f7a773d6a4ca Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 5 May 2021 23:02:56 -0400 Subject: [PATCH] Bump as a bool instead of time --- discordMessage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordMessage.go b/discordMessage.go index 93e2052..bd71309 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -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()) {