zhin-command-middleware
Installation
SKILL.md
Zhin Command & Middleware Skill
Use this skill to add message commands and middleware in Zhin plugins. It maps to MessageCommand, addCommand, and the middleware compose flow.
Command Basics
import { usePlugin, MessageCommand } from '@zhin.js/core'
const plugin = usePlugin()
plugin.addCommand(
new MessageCommand('ping')
.desc('Health check command')
.action(async (message) => {
return 'pong'
})
)