我在Mac上使用HighOSSierra。我已经使用here
序列安装了Hubot我的节点版本为 v10.7.0 ,npm版本为 6.2.0 。下面是我的package.json的样子:
{
"name": "zeus",
"version": "0.0.0",
"private": true,
"author": "testmail@company.com",
"description": "A simple helpful robot for your Company",
"dependencies": {
"coffee-script": "^1.12.6",
"hubot": "^3.1.1",
"hubot-diagnostics": "^1.0.0",
"hubot-google-images": "^0.2.7",
"hubot-google-translate": "^0.2.1",
"hubot-help": "^1.0.1",
"hubot-maps": "0.0.3",
"hubot-pugme": "^0.1.1",
"hubot-redis-brain": "^1.0.0",
"hubot-rules": "^1.0.0",
"hubot-scripts": "^2.17.2",
"hubot-shipit": "^0.2.1",
"hubot-slack": "^4.5.4"
},
"engines": {
"node": "0.10.x"
}
}
使用外壳适配器运行Hubot时,它正在响应。但是,一旦我使用Slack令牌并将适配器更改为Slack,hubot就无法继续。凝视时,我能够找到以下日志:
[Wed Sep 26 2018 13:10:18 GMT+0530 (India Standard Time)] DEBUG
RtmClient#start() with options: {"token":"***********************"}
verbose: Attempting to connect via the RTM API debug: BaseAPIClient
_makeAPICall end verbose: BaseAPIClient _callTransport - Retrying
[object Object] debug: BaseAPIClient _callTransport end verbose:
BaseAPIClient
_callTransport - Retrying [object Object] verbose: BaseAPIClient
_callTransport - Retrying [object Object] verbose: BaseAPIClient
_callTransport - Retrying [object Object] verbose: BaseAPIClient
_callTransport - Retrying [object Object] verbose: BaseAPIClient
_callTransport - Retrying [object Object] verbose: BaseAPIClient
_callTransport - Retrying [object Object] verbose: BaseAPIClient
_callTransport - Retrying [object Object]
注意:https_proxy和HTTPS_PROXY都在环境变量中设置。
在Mac上完成此工作后,我计划通过Slack与该机器人进行对话。