✏️ 减少指令误触发

This commit is contained in:
Yiwen-Chan
2021-03-22 13:07:10 +08:00
parent 3eee3d64f1
commit 184b12628f
3 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ import (
func init() { // 插件主体
// TODO 根据PID搜图
zero.OnRegex(`点歌(.*)`).SetBlock(true).SetPriority(50).
zero.OnRegex(`^点歌(.*)$`).SetBlock(true).SetPriority(50).
Handle(func(ctx *zero.Ctx) {
music, err := utils.CloudMusic(ctx.State["regex_matched"].([]string)[1])
if err != nil {