From ceffa15763fe3f61621beb7fd400bc43d2aadc9e Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 21 May 2025 18:46:27 +0200 Subject: feat(db): disable redis and use local map to store values --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 46bcb61..0a52445 100644 --- a/main.go +++ b/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) { -- cgit v1.2.3