aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-16 15:15:30 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-16 15:15:30 +0200
commitc3dc81bd29318a4916bf8fc383a0d1a5ca90fa64 (patch)
tree6f7670097a24cc797954eb88b0af88b772deb213 /main.go
parentd673c055d26b9e3e56d136864946c7dbcd271426 (diff)
fix(reducer): sql error integer > int64max
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index ed84b8a..1a9693a 100644
--- a/main.go
+++ b/main.go
@@ -120,7 +120,18 @@ func main() {
}
func afterInit(dg *discordgo.Session) {
+ // handlers
dg.AddHandler(xp.OnMessage)
dg.AddHandler(xp.OnVoiceUpdate)
dg.AddHandler(xp.OnLeave)
+
+ // setup timer for periodic reducer
+ //d := 24 * time.Hour
+ //if gokord.Debug {
+ // // reduce for debug
+ // d = time.Minute
+ //}
+ //utils.NewTimer(d, func(stop chan struct{}) {
+ // xp.PeriodicReducer(dg)
+ //})
}