✏️ 修正 sql

This commit is contained in:
fumiama
2021-11-29 20:25:14 +08:00
parent 89121cfc57
commit f3f7e2d3c1
7 changed files with 141 additions and 54 deletions

View File

@@ -6,8 +6,8 @@ import zero "github.com/wdvxdr1123/ZeroBot"
func FirstValueInList(list []string) zero.Rule {
return func(ctx *zero.Ctx) bool {
first := ctx.State["regex_matched"].([]string)[1]
for i := range list {
if first == list[i] {
for _, v := range list {
if first == v {
return true
}
}