sox/cmd_hi.go
Waldo 0b2e83ba0c Fix test isolation bug and refactor command handling into plugins
Use unique user in unknown command test to avoid last-command fallback
interference. Add plugin architecture with registered commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 21:27:53 -07:00

13 lines
382 B
Go

package main
type HiPlugin struct{}
func (p HiPlugin) Name() string { return "hi" }
func (p HiPlugin) ShortHelp() string { return "Get a friendly greeting" }
func (p HiPlugin) DetailedHelp() string {
return "hi\n\nSays hello back to you by name."
}
func (p HiPlugin) Execute(msg BotMessage, args string) string {
return "Hello " + msg.User.Name + "! How are you doing today?"
}