Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: on_keyword 参数类型错误 #2795

Merged
merged 6 commits into from
Jul 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/versioned_docs/version-2.3.1/advanced/matcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ matcher = on_fullmatch(("ping", "pong"), ignorecase=False)
```python
from nonebot.rule import keyword

rule = keyword("hello", "hi")
rule = keyword({"hello", "hi"})
yanyongyu marked this conversation as resolved.
Show resolved Hide resolved
```

也可以直接使用辅助函数新建一个响应器:

```python
from nonebot import on_keyword

matcher = on_keyword("hello", "hi")
matcher = on_keyword({"hello", "hi"})
TaskManagerOL marked this conversation as resolved.
Show resolved Hide resolved
```

### `command`
Expand Down