✏️ 修复帮助冲突

This commit is contained in:
fumiama 2021-09-10 14:43:44 +08:00
parent f9a914926e
commit e8503e97e3
2 changed files with 3 additions and 2 deletions

View File

@ -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)
})

View File

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