From e5eeec83b356158480f2e51a9a16f04a0ab79c96 Mon Sep 17 00:00:00 2001 From: c0re100 Date: Fri, 2 May 2025 03:40:05 +0800 Subject: [PATCH] Fix command parser Return text without argument --- client/extra.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/extra.go b/client/extra.go index c199cbf..c786893 100644 --- a/client/extra.go +++ b/client/extra.go @@ -37,6 +37,10 @@ func CheckCommand(text string, entities []*TextEntity) string { cmd = text[:i] } + if cmd == "" { + return text + } + return cmd } return ""