summaryrefslogtreecommitdiff
path: root/score.go
diff options
context:
space:
mode:
Diffstat (limited to 'score.go')
-rw-r--r--score.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/score.go b/score.go
index 20b4cb3..b8243d2 100644
--- a/score.go
+++ b/score.go
@@ -91,9 +91,8 @@ func Count(nick string) {
score[nick]++
}
-func AutoSave() {
- for {
+func AutoSaveScore() {
+ for range time.Tick(time.Minute) {
saveScore(score)
- time.Sleep(time.Minute)
}
}