mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 02:00:24 +00:00
💩👌 make lint happy
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user