= 2.6.0 = 2.5.0-6ren">
gpt4 book ai didi

hubot 不加载我的 hubot-scripts 配置

转载 作者:行者123 更新时间:2023-12-01 09:57:46 25 4
gpt4 key购买 nike

我已经设置了一个 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

node_modules/hubot-scripts/src/scripts/ 目录中大约有 460 个文件,其中包括我的 hubot-scripts.json 文件中给出的四个文件.我只能假设它没有读取该文件.. 或其他东西。

This documentation diff让我觉得我没有错过任何东西,there's an old issue这也是很久以前打过补丁的。

最佳答案

尝试为 hubot-scripts.json 中的所有脚本名称添加 .coffee 扩展名:

["shipit.coffee", "sudo.coffee", "9gag.coffee", "abstract.coffee"

关于hubot 不加载我的 hubot-scripts 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22023882/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com