Skip to content

如何捕捉机器人通过send发出去的消息? #573

Closed Answered by yanyongyu
JuliusNan asked this question in 问答
Discussion options

You must be logged in to vote

你是想要获得 nb 发出去的所有消息,那你可以使用 https://nonebot.dev/docs/advanced/runtime-hook#%E5%B9%B3%E5%8F%B0%E6%8E%A5%E5%8F%A3%E8%B0%83%E7%94%A8%E5%90%8E%E9%92%A9%E5%AD%90

如果你是想要获得机器人发送的所有消息(包括其他客户端发送的消息),那你需要开启协议端的自身消息上报。请根据协议端的配置指引开启。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JuliusNan
Comment options

Answer selected by JuliusNan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
2 participants