6
Q
不能在Hubot
A
回答
21
我猜你正在看错的东西。该Hubot脚本接口是不完全记载,但notify.coffee
in the examples这样说:
module.exports = (robot) ->
robot.hear /@(\w+)/i, (msg) ->
sender = msg.message.user.name.toLowerCase()
#...
所以,你可能想看看msg.message
代替msg
:
robot.enter (msg) ->
msg.send "#{msg.message.user.name}"
相关问题
- 1. Hubot:安装hubot脚本
- 2. Hubot Slack脚本
- 3. Hubot with Rocket.chat
- 4. Hubot windows服务
- 5. Hubot入门
- 6. 在Hipchat上安装Hubot(Ubuntu)
- 7. hubot是否具有与botkit的对话功能类似的功能/解决方法? (&使hubot忘记响应)
- 8. Hubot嵌套命令
- 9. Add Hub支持Hubot
- 10. Hubot没有正确设置:“hubot-redis-brain:使用默认的redis ...”
- 11. 如何在heroku上部署hubot
- 12. 无法在Heroku上部署Hubot
- 13. 用Hubot解析JIRA webhook
- 14. Hubot松弛附件字段
- 15. response.send谅解? (hubot脚本)
- 16. 错误:连接EINVAL hubot
- 17. Hubot Rocket.Chat用户加入
- 18. Hubot与松弛适配器
- 19. Hubot的Socket.io适配器
- 20. 使用Hubot从Slack查询MYSQL; CoffeeScript不起作用
- 21. shasum检查失败 - 安装hubot和npm
- 22. 从其他命令调用hubot帮助
- 23. 停止Hubot(与Flowdock)响应自己?
- 24. 将Hubot输入保存到变量中
- 25. 如何拦截/钩入Hubot响应
- 26. 使用bin/hubot命令时出错
- 27. hubot无法启动flowdock适配器
- 28. 该评论应该包含在Hubot的文档中?
- 29. 在Node.js中使用Azure Redis缓存(对于Hubot的大脑)?
- 30. 如何发送默认重播在Hubot机智
没有被印刷 – lemon 2012-02-09 01:58:26
这样做,因为如果我更换“”与你好它打印的内部。 – lemon 2012-02-09 03:51:24
没有打印 – lemon 2012-02-09 07:20:46