fix: keep only setting command entries

This commit is contained in:
姚章浩
2026-08-14 12:35:33 +08:00
parent 19ed4b50df
commit 18c81232ce
4 changed files with 24 additions and 16 deletions
+1 -4
View File
@@ -53,12 +53,9 @@ func ParseCommand(raw string) (Command, bool) {
if len(fields) == 0 {
return Command{}, false
}
if strings.HasPrefix(fields[0], "//") {
fields[0] = "/" + strings.TrimLeft(fields[0], "/")
}
name := strings.ToLower(fields[0])
switch name {
case "/setting", "/settings", "/设置", "/help":
case "/setting", "/设置":
default:
return Command{}, false
}