🎨 🔥 增加反并发

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

@@ -104,7 +104,7 @@ func init() {
"JavaScript || TypeScript || PHP || Shell \n" +
"Kotlin || Rust || Erlang || Ruby || Swift \n" +
"R || VB || Py2 || Perl || Pascal || Scala",
}).OnRegex(`^>runcode\s(.+?)\s([\s\S]+)$`).SetBlock(true).Limit(ctxext.LimitByUser).
}).ApplySingle(ctxext.DefaultSingle).OnRegex(`^>runcode\s(.+?)\s([\s\S]+)$`).SetBlock(true).Limit(ctxext.LimitByUser).
Handle(func(ctx *zero.Ctx) {
language := ctx.State["regex_matched"].([]string)[1]
language = strings.ToLower(language)