Remove bump chaser
This commit is contained in:
@ -98,9 +98,6 @@ func bumpTimer(s *discordgo.Session) {
|
|||||||
bump = false
|
bump = false
|
||||||
config.BumpTime = time.Now()
|
config.BumpTime = time.Now()
|
||||||
time.Sleep(2 * time.Hour)
|
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.")
|
s.ChannelMessageSend(config.AdminChannel, "!d bump is ready.")
|
||||||
bump = true
|
bump = true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"regexp"
|
|
||||||
|
|
||||||
"github.com/bwmarrin/discordgo"
|
"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