Skip to content

Commit

Permalink
Update matcher.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Sep 29, 2024
1 parent 4262a17 commit 7cab466
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/docs/tutorial/matcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ weather = on_command("天气", rule=to_me(), aliases={"weather", "查天气"}, p
```

这样,我们就获得了一个可以响应 `天气``weather``查天气` 三个命令的响应规则,需要私聊或 `@bot` 时才会响应,优先级为 10(越小越优先),阻断事件向后续优先级传播的事件响应器了。这些内容的意义和使用方法将会在后续的章节中一一介绍。

:::tip 提示
需要注意的是,不同的辅助函数有不同的可选参数,在使用之前可以参考[事件响应器进阶 - 基本辅助函数](../advanced/matcher.md#基本辅助函数)[API 文档](../api/plugin/on.md#on)
:::

0 comments on commit 7cab466

Please sign in to comment.