Simplify feishu group_policy: default to mention, clean up mention detection
This commit is contained in:
15
README.md
15
README.md
@@ -503,7 +503,7 @@ Uses **WebSocket** long connection — no public IP required.
|
||||
"encryptKey": "",
|
||||
"verificationToken": "",
|
||||
"allowFrom": ["ou_YOUR_OPEN_ID"],
|
||||
"groupPolicy": "open"
|
||||
"groupPolicy": "mention"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -511,18 +511,7 @@ Uses **WebSocket** long connection — no public IP required.
|
||||
|
||||
> `encryptKey` and `verificationToken` are optional for Long Connection mode.
|
||||
> `allowFrom`: Add your open_id (find it in nanobot logs when you message the bot). Use `["*"]` to allow all users.
|
||||
|
||||
**Group Chat Policy** (optional):
|
||||
|
||||
| Option | Values | Default | Description |
|
||||
|--------|--------|---------|-------------|
|
||||
| `groupPolicy` | `"open"` | `"open"` | Respond to all group messages (backward compatible) |
|
||||
| | `"mention"` | | Only respond when @mentioned |
|
||||
|
||||
> [!NOTE]
|
||||
> - `"open"`: Respond to all messages in all groups
|
||||
> - `"mention"`: Only respond when @mentioned in any group
|
||||
> - Private chats are unaffected (always respond)
|
||||
> `groupPolicy`: `"mention"` (default — respond only when @mentioned), `"open"` (respond to all group messages). Private chats always respond.
|
||||
|
||||
**3. Run**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user