Custom Commands
Register custom commands to extend botster's built-in functionality. Commands can be triggered from the browser UI or the TUI menu.
User init file
Your entry point for all customization is
~/.botster/lua/user/init.lua,
similar to Neovim's init.lua:
-- ~/.botster/lua/user/init.lua
local commands = require("commands")
local hooks = require("hooks")
-- Register a custom command
commands.register("my_command", function(args)
-- Your logic here
end)
-- Register a hook
hooks.on("agent_created", function(agent)
-- React to events
end)
Available APIs
commands.register(name, handler)— register a commandhooks.on(event, handler)— listen for events