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-auth不认证
- 2. Hubot:安装hubot脚本
- 3. hubot不加载我的hubot脚本配置
- 4. Hubot windows服务
- 5. Hubot with Rocket.chat
- 6. Hubot入门
- 7. Hubot Slack脚本
- 8. 在Hipchat上安装Hubot(Ubuntu)
- 9. hubot是否具有与botkit的对话功能类似的功能/解决方法? (&使hubot忘记响应)
- 10. Hubot嵌套命令
- 11. Add Hub支持Hubot
- 12. Hubot包和Hubot脚本之间有什么区别?
- 13. Hubot剂量答案 - Hubot Unix(外壳适配器)
- 14. Hubot没有正确设置:“hubot-redis-brain:使用默认的redis ...”
- 15. Hubot在启动时挂起/冻结
- 16. 如何在heroku上部署hubot
- 17. 无法在Heroku上部署Hubot
- 18. 在Hubot脚本中调试/打印
- 19. Hubot Rocket.Chat用户加入
- 20. 用Hubot解析JIRA webhook
- 21. 如何为hubot设置node_path
- 22. Hubot Slack:从#general中删除
- 23. Hubot的github-pull-request-notifier.coffee
- 24. Hubot与松弛适配器
- 25. 错误:连接EINVAL hubot
- 26. response.send谅解? (hubot脚本)
- 27. Hubot松弛附件字段
- 28. Hubot的Socket.io适配器
- 29. Hubot与hipchat适配器不启动在Ubuntu上
- 30. 使用Hubot从Slack查询MYSQL; CoffeeScript不起作用
没有被印刷 – lemon 2012-02-09 01:58:26
这样做,因为如果我更换“”与你好它打印的内部。 – lemon 2012-02-09 03:51:24
没有打印 – lemon 2012-02-09 07:20:46