优化代码结构 (#565)

This commit is contained in:
DreamZero
2023-01-30 17:42:53 +08:00
committed by GitHub
parent 07e6f33b04
commit f96b5f8965
11 changed files with 73 additions and 48 deletions

View File

@@ -53,7 +53,7 @@ func init() {
text := strings.ReplaceAll(cs.Story, "<攻>", gong)
text = strings.ReplaceAll(text, "<受>", shou)
text = strings.ReplaceAll(text, cs.Gong, gong)
text = strings.ReplaceAll(text, cs.Shou, gong)
text = strings.ReplaceAll(text, cs.Shou, shou)
ctx.SendChain(message.Text(text))
})
engine.OnPrefix("磕cp", getdb).SetBlock(true).Handle(func(ctx *zero.Ctx) {