fortune 增加下载锁;优化 gui 插件控制

This commit is contained in:
fumiama
2021-10-27 12:42:34 +08:00
parent 82ee2f6b0a
commit 755bfeaa5b
5 changed files with 63 additions and 67 deletions

View File

@@ -190,6 +190,7 @@ func (ts *Timer) nextWakeTime() (date time.Time) {
func (ts *Timer) judgeHM() {
if ts.Hour < 0 || ts.Hour == int32(time.Now().Hour()) {
if ts.Minute < 0 || ts.Minute == int32(time.Now().Minute()) {
//zero.GetBot(zero.BotConfig.SelfID)
zero.RangeBot(func(id int64, ctx *zero.Ctx) bool {
ctx.Event = new(zero.Event)
ctx.Event.GroupID = int64(ts.Grpid)