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" {