fix:修改格式

This commit is contained in:
haibaraguo
2021-09-05 02:35:07 +08:00
parent c8e7e19934
commit 7e2912d5d1
2 changed files with 54 additions and 48 deletions

View File

@@ -13,7 +13,15 @@ import (
func init() {
//所有群添加定时早安
zero.OnMessage().SetBlock(false).FirstPriority().Handle(func(ctx *zero.Ctx) {
//zero.RangeBot(func(id int64, ctx *zero.Ctx) bool { // test the range bot function
// result := ctx.GetGroupList()
// log.Println(result)
// for _, v := range result.Array() {
// Daily(v.Get("group_id").Int())
// }
// return true
//})
zero.OnCommand("daily").SetBlock(false).FirstPriority().Handle(func(ctx *zero.Ctx) {
log.Println(ctx.GetGroupList())
result := ctx.GetGroupList()
for _, v := range result.Array() {
@@ -22,7 +30,6 @@ func init() {
})
Daily(780549442)
}