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

robot.listen 监听到的消息,只有 text 字段 #51

Open
yfractal opened this issue Jun 3, 2020 · 0 comments
Open

robot.listen 监听到的消息,只有 text 字段 #51

yfractal opened this issue Jun 3, 2020 · 0 comments

Comments

@yfractal
Copy link

yfractal commented Jun 3, 2020

BearyChat 的消息除了 text 以外,还有其他字段,比如 attachment。

但使用 listent 方法,获取到的消息只有 text 字段。

一些机器人发的报警,使用了这些字段,比如 OneAlert。

期望

可以获取到其他字段。

原因

https://github.com/bearyinnovative/hubot-bearychat/blob/master/src/rtm_client.coffee#L154

只 emit 了 message.text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant