🎨 🔥 增加反并发

This commit is contained in:
fumiama
2022-02-08 14:58:47 +08:00
parent a16bcda7da
commit 8f6b3fa00d
10 changed files with 14 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ func init() { // 插件主体
"- 设置随机图片网址[url]\n" +
"- 太涩了(撤回最近发的图)\n" +
"- 评价图片(发送一张图片让bot评分)",
})
}).ApplySingle(ctxext.DefaultSingle)
engine.OnRegex(`^设置随机图片网址(.*)$`, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
url := ctx.State["regex_matched"].([]string)[1]