我已经设置了一个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 packagesnode_modules/hubot-scripts/src/scripts/目录中大约有460个文件,其中包括hubot-scripts.json文件中给出的四个文件。我只能假设它不是在读那个文件。或者别的什么。
发布于 2014-02-26 19:21:52
尝试将.coffee扩展添加到hubot-scripts.json中的所有脚本名中
["shipit.coffee", "sudo.coffee", "9gag.coffee", "abstract.coffee"https://stackoverflow.com/questions/22023882
复制相似问题