feat(commands): friendly /hipico empty-arg response with examples

When /hipico is called without a message, reply with a greeting and
usage examples instead of a plain error message.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
seagochen 2026-03-09 15:22:34 +08:00
parent 6a8bba47cc
commit 6a303b295a

View file

@ -51,7 +51,7 @@ func hipicoCmnd() Definition {
} }
} }
if msg == "" { if msg == "" {
return req.Reply("Usage: /hipico <message>\nExample: /hipico check the log files for errors") return req.Reply("👋 Hi~ What can I help you with?\n\n💡 Examples:\n /hipico what files are in the working directory?\n /hipico what time is it now?\n /hipico what's the progress on the previous task?")
} }
reply, err := rt.RunOneShot(ctx, msg) reply, err := rt.RunOneShot(ctx, msg)
if err != nil { if err != nil {