|
|
@@ -1,29 +1,31 @@
|
|
|
## Chatto Plugin Installed ✅
|
|
|
|
|
|
-Next steps:
|
|
|
+Next steps. Edit your `~/.hermes/.env` OR `~/.hermes/config.yaml`
|
|
|
|
|
|
-1. **Add credentials** to `~/.hermes/.env`:
|
|
|
+Environment Variables will take precedence over config.yaml entries.
|
|
|
+
|
|
|
+1. Required connection details
|
|
|
```
|
|
|
- CHATTO_URL=https://chat.example.com
|
|
|
CHATTO_LOGIN=your-username
|
|
|
CHATTO_PASSWORD=your-password
|
|
|
```
|
|
|
-
|
|
|
-2. **Find your home channel ID** — in Chatto, right-click a room → Copy ID, or use the API:
|
|
|
- ```bash
|
|
|
- curl -s -X POST https://chat.example.com/auth/login \
|
|
|
- -H "Content-Type: application/json" \
|
|
|
- -d '{"login":"your-username","password":"your-password"}'
|
|
|
+ To connect to your server, set `CHATTO_BASE_URL`. Default, when not set,
|
|
|
+ is ChattoHQ (`https://chat.chatto.run`)
|
|
|
```
|
|
|
+ CHATTO_BASE_URL=https://chat.example.com
|
|
|
+ ```
|
|
|
+
|
|
|
+2. Home Channel
|
|
|
|
|
|
-3. **Set the home channel** (optional, defaults to first room):
|
|
|
+ Set your Home Channel using the Channel ID** (optional, defaults to first room):
|
|
|
```bash
|
|
|
CHATTO_HOME_CHANNEL=ROOM_ID_HERE
|
|
|
```
|
|
|
|
|
|
-4. **Restart the gateway**:
|
|
|
+3. Restart the Hermes Gateway
|
|
|
```bash
|
|
|
hermes gateway restart
|
|
|
```
|
|
|
|
|
|
-5. **Test** — send a message in a Chatto room mentioning your bot's username.
|
|
|
+4. Test
|
|
|
+ send a message in a Chatto room mentioning your bot's username.
|