mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-27 13:56:33 +02:00
| .. | ||
| extension.json | ||
| main.go | ||
| README.md | ||
hello — example zot extension (Go)
A minimal example showing how to register slash commands with the
zotext SDK.
Build
cd examples/extensions/hello
go build -o hello .
Install
# from this directory
zot ext install .
This copies the directory (manifest + binary) into
$ZOT_HOME/extensions/hello/. zot picks it up the next time you
launch the TUI.
Use
In zot, type:
/hello— agent greets you/hello <name>— agent greets<name>/summon— extension pushes a one-shot notice to the chat
See also
pkg/zotext— Go SDKdocs/extensions.md— protocol reference for any-language extensions