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