aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-21 18:46:27 +0200
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-21 18:46:27 +0200
commitceffa15763fe3f61621beb7fd400bc43d2aadc9e (patch)
treebb434b1cc650659303a23f878efbe0f2907fbc41 /main.go
parent642025681befa35f67cc7c25383eb782ac01feac (diff)
feat(db): disable redis and use local map to store values
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
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) {