Hubot 错误:脚本正在使用已弃用的文档语法



我正在使用docker compose来部署Hubot。在我运行"docker compose up"后,一切对我来说都很好。Hubot在线并工作。 但是,我想在其中添加自己的脚本。我刚刚收到一个错误:

test.coffee is using deprecated documentation syntax.

这与此问题完全相同。 但我无法理解解决方案的重点。

有关更详细的屏幕截图,请查看此链接

感谢您的建议!

查看"Hubot 脚本文档"的">文档脚本"部分

截至 2018-10-10 的当前格式为:

# Description:
#   <description of the scripts functionality>
#
# Dependencies:
#   "<module name>": "<module version>"
#
# Configuration:
#   LIST_OF_ENV_VARS_TO_SET
#
# Commands:
#   hubot <trigger> - <what the respond trigger does>
#   <trigger> - <what the hear trigger does>
#
# Notes:
#   <optional notes required for the script>
#
# Author:
#   <github username of the original script author>

在脚本顶部包含标题。 如果不遵循上述格式,hubot 会报告弃用警告。

在我的 hubot 上,使用这种格式似乎有效。

最新更新