mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-02 05:45:20 +08:00
doc: 完善prefix的说明
This commit is contained in:
@@ -43,7 +43,13 @@
|
||||
|
||||
`at`:`true`或`false`,为true时,所有at机器人的消息都会被响应
|
||||
|
||||
`prefix`:设置响应前缀,带有指定前缀的消息即使没有at机器人也会被响应
|
||||
`prefix`:设置响应前缀,带有指定前缀的消息即使没有at机器人也会被响应,发送给AI时会删除前缀。例如:
|
||||
|
||||
```json
|
||||
"prefix": ["/ai", "!ai", "!ai", "ai"]
|
||||
|
||||
此时,消息"ai 你好"就会被响应,发送给AI时会删除前缀"ai",即"你好"
|
||||
```
|
||||
|
||||
`regexp`:正则匹配,[正则表达式教程](https://www.runoob.com/regexp/regexp-syntax.html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user