Browse Source

Remove bump chaser

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

3
config.go

@ -98,9 +98,6 @@ func bumpTimer(s *discordgo.Session) { @@ -98,9 +98,6 @@ func bumpTimer(s *discordgo.Session) {
bump = false
config.BumpTime = time.Now()
time.Sleep(2 * time.Hour)
if time.Since(lastActiveTime) < (5 * time.Minute) {
s.ChannelMessageSend(lastActiveChan, "!d bump is ready, please use it. (say \"!d bump\" without the quotes)")
}
s.ChannelMessageSend(config.AdminChannel, "!d bump is ready.")
bump = true
}

7
discordMessage.go

@ -2,9 +2,9 @@ package main @@ -2,9 +2,9 @@ package main
import (
"fmt"
"regexp"
"strings"
"time"
"regexp"
"github.com/bwmarrin/discordgo"
)
@ -103,11 +103,6 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { @@ -103,11 +103,6 @@ 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()))
}
}
}

Loading…
Cancel
Save