💩👌 make lint happy

This commit is contained in:
fumiama
2021-08-06 18:11:32 +08:00
parent bf78603d19
commit 58bc1758ec
6 changed files with 17 additions and 7 deletions

View File

@@ -65,9 +65,10 @@ func init() {
})
// 逆天
// \u200b 是 🥵 的转义
zero.OnFullMatch("发大病", zero.OnlyToMe).
Handle(func(ctx *zero.Ctx) {
ctx.Send("贝拉抽我🥵嘉然骑在我背上🥵晚晚踩我🥵乃琳坐在王座是用看垃圾的眼神看我🥵🥵珈乐踢我🥵🥵,把我眼睛蒙住然后五只脚一起踩我🥵还让我猜脚是谁的,猜错了给我劈眼一铁棍🥵")
ctx.Send("贝拉抽我\u200b嘉然骑在我背上\u200b晚晚踩我\u200b乃琳坐在王座是用看垃圾的眼神看我\u200b\u200b珈乐踢我\u200b\u200b,把我眼睛蒙住然后五只脚一起踩我\u200b还让我猜脚是谁的,猜错了给我劈眼一铁棍\u200b")
})
// 增加小作文
zero.OnRegex(`^教你一篇小作文(.*)$`, zero.AdminPermission).

View File

@@ -65,10 +65,10 @@ func init() {
}
// 发起api请求并把返回body交由json库解析
func zhiwangapi(Text string) *zhiwang {
func zhiwangapi(text string) *zhiwang {
url := "https://asoulcnki.asia/v1/api/check"
post := "{\n\"text\":\"" + Text + "\"\n}"
post := "{\n\"text\":\"" + text + "\"\n}"
var jsonStr = []byte(post)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))