MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / init

Function init

plugin/fgopickup/main.go:11–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func 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}

Callers

nothing calls this directly

Calls 1

initializeFunction · 0.70

Tested by

no test coverage detected