diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-21 18:46:27 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-21 18:46:27 +0200 |
| commit | ceffa15763fe3f61621beb7fd400bc43d2aadc9e (patch) | |
| tree | bb434b1cc650659303a23f878efbe0f2907fbc41 /main.go | |
| parent | 642025681befa35f67cc7c25383eb782ac01feac (diff) | |
feat(db): disable redis and use local map to store values
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |
