mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 18:20:27 +00:00
✏️ 减少指令误触发
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user