fix(reducer): sql error integer > int64max

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-16 15:15:30 +02:00
parent d673c055d2
commit c3dc81bd29
No known key found for this signature in database
GPG key ID: CF4550297832A29F
2 changed files with 60 additions and 6 deletions

11
main.go
View file

@ -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)
//})
}