bots
هذا المحتوى غير متوفر بلغتك بعد.
Bots Plugin
Section titled “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
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install botsWhat It Does
Section titled “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
Section titled “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 |
| Port | Purpose |
|---|---|
| 3103 | Bots REST API |
Database Tables
Section titled “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
Section titled “Nginx Routes”| Route | Target |
|---|---|
/bots/ | Bot management API |
/bots/webhook/{bot_id} | Bot webhook receiver |