aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0d5bcd3..1012f19 100644
--- a/main.go
+++ b/main.go
@@ -99,7 +99,7 @@ func main() {
SetHandler(commands.ConfigCommand)
topCmd := cmd.New("top", "Copaings les plus actifs").
- SetHandler(commands.Top)
+ SetHandler(commands.Top(ctx))
resetCmd := cmd.New("reset", "Reset l'xp").
SetHandler(commands.Reset).
@@ -293,4 +293,8 @@ func main() {
if stopPeriodicReducer != nil {
stopPeriodicReducer <- true
}
+
+ if stopPeriodicSaver != nil {
+ stopPeriodicSaver <- true
+ }
}