()
| 9 | ) |
| 10 | |
| 11 | func init() { |
| 12 | engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{ |
| 13 | DisableOnDefault: false, |
| 14 | Brief: "Fate/Grand Order", |
| 15 | Help: "- fgo未来视 (查询未来卡池)\n" + |
| 16 | "- fgo卡池[id] (以卡池id查询卡池详情)\n" + |
| 17 | "- fgo从者[page] (分页查询从者)\n" + |
| 18 | "- fgo从者卡池[从者id]", |
| 19 | Banner: "https://wx2.sinaimg.cn/large/0083LFbYgy1hcfkreklmbj31e012w7i5.jpg", |
| 20 | PrivateDataFolder: "fgopickup", |
| 21 | }) |
| 22 | |
| 23 | _ = initialize(engine.DataFolder() + "fgopickup.db") |
| 24 | |
| 25 | engine.OnFullMatch(`fgo未来视`). |
| 26 | SetBlock(true). |
| 27 | Limit(ctxext.LimitByGroup). |
| 28 | Handle(listPickups) |
| 29 | |
| 30 | engine.OnPrefix(`fgo卡池`). |
| 31 | SetBlock(true). |
| 32 | Limit(ctxext.LimitByGroup). |
| 33 | Handle(pickupDetail) |
| 34 | |
| 35 | engine.OnPrefix(`fgo从者`). |
| 36 | SetBlock(true). |
| 37 | Limit(ctxext.LimitByGroup). |
| 38 | Handle(getServantList) |
| 39 | |
| 40 | engine.OnPrefix(`fgo从者卡池`). |
| 41 | SetBlock(true). |
| 42 | Limit(ctxext.LimitByGroup). |
| 43 | Handle(getServantPickups) |
| 44 | } |
nothing calls this directly
no test coverage detected