🎨 ctx.Send -> ctx.SendChain

This commit is contained in:
Kanri
2021-10-15 21:43:47 +08:00
parent 2a1cca8ebb
commit c46ca1d4c2
13 changed files with 73 additions and 57 deletions

View File

@@ -35,9 +35,9 @@ func init() { // 插件主体
Handle(func(ctx *zero.Ctx) {
err := os.RemoveAll("data/cache/*")
if err != nil {
ctx.Send("错误: " + err.Error())
ctx.SendChain(message.Text("错误: ", err.Error()))
} else {
ctx.Send("成功!")
ctx.SendChain(message.Text("成功!"))
}
})
}