feat(db): disable redis and use local map to store values

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-21 18:46:27 +02:00
parent 642025681b
commit ceffa15763
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
7 changed files with 27 additions and 110 deletions

View file

@ -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) {