Bump as a bool instead of time
This commit is contained in:
@ -49,7 +49,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||||||
go bumpTimer(s)
|
go bumpTimer(s)
|
||||||
return
|
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()))
|
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()) {
|
if strings.HasPrefix(m.Content, s.State.User.Mention()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user