This commit is contained in:
cdle
2021-10-17 14:24:57 +08:00
parent 5f61956c26
commit 60471d63e3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -51,6 +51,7 @@ func AddCommand(prefix string, cmds []Function) {
cmds[j].Rules[i] = strings.Replace(cmds[j].Rules[i], "raw ", "", -1)
continue
}
cmds[j].Rules[i] = strings.ReplaceAll(cmds[j].Rules[i], `\r\a\w`, "raw")
if strings.Contains(cmds[j].Rules[i], "$") {
continue
}
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func init() {
core.AddCommand("ql", []core.Function{
{
Rules: []string{`a ?`},
Rules: []string{`\r\a\w ?`},
Admin: true,
Handle: func(s core.Sender) interface{} {
cron := &Carrier{