【问题标题】:What's the difference between a Hubot Package and a Hubot Script?Hubot 包和 Hubot 脚本有什么区别?
【发布时间】:2015-11-29 14:40:55
【问题描述】:

我正在将 Hubot 与 Slack 一起使用,并且我已经成功地集成了很多不同的 NPM 包。

我正在考虑开发一些新功能,但我不确定如何进行。

如何确定我需要做的事情是否由脚本正确完成?或者,什么时候使用 NPM 包?

【问题讨论】:

    标签: hubot


    【解决方案1】:

    没有区别。

    在官方网站上:"Hubot / GitHub" 截至 12 月/15 日我们可以看到这个描述和链接:

    我们还维护:repository of community Hubot scriptsan organization of community Hubot packages,您可以将它们添加到您自己的机器人中。

    第一个链接 (https://github.com/github/hubot-scripts) 链接到一个名为“github/hubot-scripts”的 GitHub 存储库,第二个链接到一个名为“Hubot Scripts”的 GitHub 组织,它实际上是一个脚本集合。

    【讨论】:

      【解决方案2】:

      如果您想与他人共享,最好始终写为 npm 插件 您可以将其用作模板https://github.com/gasolin/webby-plugin

      其实没什么区别 https://github.com/github/hubot/blob/master/bin/hubot#L104

      但是使用 npm 插件你可以更好地定义你的插件库依赖

      【讨论】:

        猜你喜欢
        • 2017-04-20
        • 1970-01-01
        • 2017-01-21
        • 2019-09-24
        • 2018-03-26
        • 2015-12-12
        • 2018-08-24
        • 2013-12-17
        • 1970-01-01
        相关资源
        最近更新 更多