feat(db): disable redis and use local map to store values
This commit is contained in:
parent
642025681b
commit
ceffa15763
7 changed files with 27 additions and 110 deletions
5
main.go
5
main.go
|
@ -27,10 +27,11 @@ var (
|
|||
|
||||
func init() {
|
||||
flag.StringVar(&token, "token", "", "token of the bot")
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
gokord.UseRedis = false
|
||||
err := gokord.SetupConfigs(&Config{}, []*gokord.ConfigInfo{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
@ -176,8 +177,6 @@ func main() {
|
|||
if stopPeriodicReducer != nil {
|
||||
stopPeriodicReducer <- true
|
||||
}
|
||||
|
||||
config.CloseRedisClient()
|
||||
}
|
||||
|
||||
func afterInit(dg *discordgo.Session) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue