diff --git a/README.md b/README.md index 88d2f8d54..37713842e 100644 --- a/README.md +++ b/README.md @@ -403,6 +403,7 @@ If you prefer to configure manually, add the following to `~/.nanobot/config.jso "enabled": true, "token": "YOUR_BOT_TOKEN", "allowFrom": ["YOUR_USER_ID"], + "allowChannels": [], "groupPolicy": "mention", "streaming": true } @@ -415,6 +416,7 @@ If you prefer to configure manually, add the following to `~/.nanobot/config.jso > - `"open"` — Respond to all messages > DMs always respond when the sender is in `allowFrom`. > - If you set group policy to open create new threads as private threads and then @ the bot into it. Otherwise the thread itself and the channel in which you spawned it will spawn a bot session. +> `allowChannels` restricts the bot to specific Discord channel IDs. Empty (default) means respond in every channel the bot can see. Example: `["1234567890", "0987654321"]`. The filter applies after `allowFrom`, so both must pass. > `streaming` defaults to `true`. Disable it only if you explicitly want non-streaming replies. **5. Invite the bot**