plugin bots - nself-org/cli GitHub Wiki
Bots Plugin
Bot framework for chat, commands, subscriptions, and bot marketplace. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
nself license set nself_pro_xxxxx...
nself plugin install bots
What It Does
A framework for building and deploying chat bots that integrate with the chat plugin. Define bot commands (slash commands), event subscriptions (react to messages, joins, reactions), and publish bots to a shared marketplace. Supports webhook-triggered bots and native Go bot handlers.
Configuration
| Env Var | Default | Description |
|---|---|---|
BOTS_PORT |
3103 |
Bots service port |
BOTS_WEBHOOK_TIMEOUT |
5s |
Webhook delivery timeout |
BOTS_MARKETPLACE_ENABLED |
true |
Enable bot marketplace |
Ports
| Port | Purpose |
|---|---|
| 3103 | Bots REST API |
Database Tables
9 tables added to your Postgres database:
np_bots_bots, registered bot definitionsnp_bots_commands, slash command registrationsnp_bots_subscriptions, event subscriptionsnp_bots_webhooks, webhook delivery configsnp_bots_marketplace, marketplace listingsnp_bots_installs, bot install recordsnp_bots_tokens, bot authentication tokensnp_bots_events, event delivery lognp_bots_responses, bot response cache
Nginx Routes
| Route | Target |
|---|---|
/bots/ |
Bot management API |
/bots/webhook/{bot_id} |
Bot webhook receiver |