|
|
@@ -49,7 +49,7 @@ Capabilities natively implemented by the Chatto plugin adapter:
|
|
|
|
|
|
1. **A running Chatto server** — self-hosted and accessible from the Hermes host. See the [Chatto repository](https://github.com/chattocorp/chatto) for installation instructions.
|
|
|
2. **A Chatto user account** — the adapter logs in with a username and password (or token). Create a dedicated account for the bot (e.g., `hermes`).
|
|
|
-3. **Room membership** — the bot account must be a member of any room where you want it to respond. The adapter auto-joins rooms specified in `CHATTO_CHANNELS`. For DMs, simply start a direct message with the bot.
|
|
|
+3. **Room membership** — the bot account must be a member of any room where you want it to respond; the adapter watches every room the account has joined. For DMs, simply start a direct message with the bot.
|
|
|
4. **Network access** — the Hermes host must reach the Chatto server URL over HTTPS (or HTTP) and establish a WebSocket connection to `/api/realtime`.
|
|
|
|
|
|
> **Info:** The adapter uses WebSocket protocol v1 (compatible with Chatto v0.4.20+). Ensure your Chatto server is up to date.
|
|
|
@@ -90,9 +90,6 @@ CHATTO_BASE_URL=https://chat.example.com
|
|
|
CHATTO_LOGIN=hermes
|
|
|
CHATTO_PASSWORD=your-password
|
|
|
|
|
|
-# Optional: restrict to specific rooms (comma-separated room IDs)
|
|
|
-# CHATTO_CHANNELS=REljMv5Pgolo6Y9,abc123def456
|
|
|
-
|
|
|
# Optional: home channel for cron/notification delivery
|
|
|
# CHATTO_HOME_CHANNEL=REljMv5Pgolo6Y9
|
|
|
|
|
|
@@ -128,8 +125,6 @@ gateway:
|
|
|
enabled: true
|
|
|
extra:
|
|
|
base_url: https://chat.example.com
|
|
|
- channels: # room IDs to watch (empty = all joined)
|
|
|
- - REljMv5Pgolo6Y9
|
|
|
home_channel: REljMv5Pgolo6Y9
|
|
|
require_mention: false # only respond to @mentions in channels
|
|
|
allowed_users: [] # empty = deny all (or set allow_all_users)
|
|
|
@@ -146,7 +141,6 @@ gateway:
|
|
|
| `CHATTO_LOGIN` | Yes* | — | Chatto username (login) |
|
|
|
| `CHATTO_PASSWORD` | Yes* | — | Chatto password |
|
|
|
| `CHATTO_TOKEN` | No | — | Existing bearer token — alternative to login/password |
|
|
|
-| `CHATTO_CHANNELS` | No | All joined rooms | Comma-separated room IDs to watch |
|
|
|
| `CHATTO_HOME_CHANNEL` | No | First watched room | Room ID for cron/notification delivery |
|
|
|
| `CHATTO_ALLOWED_USERS` | No | _(deny all)_ | Comma-separated Chatto logins allowed to talk to the agent |
|
|
|
| `CHATTO_ALLOW_ALL_USERS` | No | `false` | Allow any Chatto user to talk to the agent (`true`/`false`) |
|