Remove bump chaser
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} 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()))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user