-
on_message里面没有机器人通过send发出去的消息,有没有什么响应器能捕捉?(我想建立一个应用,作用是收集bot send的所有消息) |
Beta Was this translation helpful? Give feedback.
Answered by
yanyongyu
Mar 1, 2025
Replies: 1 comment 1 reply
-
你是想要获得 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 如果你是想要获得机器人发送的所有消息(包括其他客户端发送的消息),那你需要开启协议端的自身消息上报。请根据协议端的配置指引开启。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JuliusNan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你是想要获得 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
如果你是想要获得机器人发送的所有消息(包括其他客户端发送的消息),那你需要开启协议端的自身消息上报。请根据协议端的配置指引开启。