mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 10:10:25 +00:00
扩增文心AI的功能,修复猜歌的权限问题 (#471)
This commit is contained in:
@@ -165,7 +165,7 @@ func init() { // 插件主体
|
||||
ctx.SendChain(message.Text(serviceErr, "ERROR:\n", err))
|
||||
}
|
||||
})
|
||||
engine.OnRegex(`^猜歌(开启|关闭)(歌单|歌词)自动下载`).SetBlock(true).
|
||||
engine.OnRegex(`^猜歌(开启|关闭)(歌单|歌词)自动下载`, zero.SuperUserPermission).SetBlock(true).
|
||||
Handle(func(ctx *zero.Ctx) {
|
||||
swtich := ctx.State["regex_matched"].([]string)[1]
|
||||
option := ctx.State["regex_matched"].([]string)[1]
|
||||
|
||||
Reference in New Issue
Block a user