我已经建立了一个hubot服务器,版本2.7.1
。这是我的依赖项部分package.json
:
"dependencies": {
"hubot": ">= 2.6.0 < 3.0.0",
"hubot-scripts": ">= 2.5.0 < 3.0.0",
"hubot-hipchat": "~2.6.4"
},
当它启动时,它会加载脚本,scripts/
但似乎忽略了我放入的集合hubot-scripts.json
。这是该文件的第一部分:
["shipit.coffee", "sudo", "9gag", "abstract"
使用详细的启动日志,您可以看到包含 shipit.coffee(默认值之一),但其余都不是:
[Tue Feb 25 2014 10:59:46 GMT-0800 (PST)] DEBUG Loading hubot-scripts from /path/node_modules/hubot-scripts/src/scripts
[Tue Feb 25 2014 10:59:46 GMT-0800 (PST)] DEBUG Parsing help for /path/node_modules/hubot-scripts/src/scripts/shipit.coffee
[Tue Feb 25 2014 10:59:46 GMT-0800 (PST)] DEBUG Loading external-scripts from npm packages
目录中大约有 460 个文件node_modules/hubot-scripts/src/scripts/
,其中包括我的文件中给出的四个hubot-scripts.json
。我只能假设它没有读取该文件..或其他东西。