fix(reducer): sql error integer > int64max
This commit is contained in:
parent
d673c055d2
commit
c3dc81bd29
2 changed files with 60 additions and 6 deletions
11
main.go
11
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)
|
||||
//})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue