This commit is contained in:
daru
2022-04-13 19:11:14 +02:00
parent 14a146fc53
commit 1bf126afa4
11 changed files with 639 additions and 0 deletions

22
praktikant.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"time"
"github.com/gookit/color"
)
func Arbeiten() {
for range time.Tick(time.Hour) {
// Alle Daten
_, bytes, err := GetSeasonDataAll()
if err != nil {
color.Errorln(err.Error())
} else {
err = cache.Set(seasonApiJikan, bytes)
if err != nil {
color.Errorln(err.Error())
}
}
}
}