feat: support kick

This commit is contained in:
Vaala Cat
2023-06-19 19:21:26 +08:00
parent 730aea3e3b
commit c278b3f516
16 changed files with 447 additions and 90 deletions

16
utils/cron.go Normal file
View File

@@ -0,0 +1,16 @@
package utils
import (
"time"
"github.com/go-co-op/gocron"
)
var (
s = gocron.NewScheduler(time.UTC)
)
func CronStart(f func()) {
s.Every("1m").Do(f)
s.StartAsync()
}