优化baiduaudit

This commit is contained in:
源文雨
2023-03-05 00:46:53 +08:00
parent 5226548cec
commit 861b3cc82f
3 changed files with 408 additions and 340 deletions

View File

@@ -23,7 +23,7 @@ func init() {
engine.OnFullMatch("疯狂星期四").SetBlock(true).Handle(func(ctx *zero.Ctx) {
data, err := web.GetData(crazyURL)
if err != nil {
ctx.SendChain(message.Text("Error:", err))
ctx.SendChain(message.Text("ERROR: ", err))
return
}
ctx.SendChain(message.Text(gjson.ParseBytes(data).Get("@this.0.content").String()))