From e8503e97e3809fc9335e7e57bb44474f6187b49e Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 10 Sep 2021 14:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- plugin_qingyunke/qingyunke.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 8a72c6eb..b0a79893 100644 --- a/main.go +++ b/main.go @@ -87,7 +87,7 @@ func main() { }) // 帮助 - zero.OnFullMatchGroup([]string{"help", "/help", ".help", "菜单", "帮助"}, zero.OnlyToMe).SetBlock(true).SetPriority(999). + zero.OnFullMatchGroup([]string{"/help", ".help", "菜单"}, zero.OnlyToMe).SetBlock(true).FirstPriority(). Handle(func(ctx *zero.Ctx) { ctx.Send(banner) }) diff --git a/plugin_qingyunke/qingyunke.go b/plugin_qingyunke/qingyunke.go index 7a010b01..e4294020 100644 --- a/plugin_qingyunke/qingyunke.go +++ b/plugin_qingyunke/qingyunke.go @@ -22,7 +22,7 @@ import ( ) var ( - prio = 3 + prio = 100 bucket = rate.NewManager(time.Minute, 20) // 青云客接口回复 engine *zero.Engine ) @@ -58,6 +58,7 @@ func init() { // 插件主体 textReply = reply } textReply = strings.ReplaceAll(textReply, "菲菲", zero.BotConfig.NickName[0]) + textReply = strings.ReplaceAll(textReply, "{br}", "\n") // 回复 time.Sleep(time.Second * 1) if ctx.Event.MessageType == "group" {