sox/cmd_ping.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
364 B
Go

package main
type PingPlugin struct{}
func (p PingPlugin) Name() string { return "ping" }
func (p PingPlugin) ShortHelp() string { return "Check if I'm alive" }
func (p PingPlugin) DetailedHelp() string {
return "ping\n\nResponds with 'Pong!' to confirm the bot is running."
}
func (p PingPlugin) Execute(msg BotMessage, args string) string {
return "Pong!"
}