简体   繁体   中英

Hubot Error: Script is using deprecated documentation syntax

I am using docker compose to deploy Hubot. Everything works just fine for me after i ran "docker compose up". Hubot is online and works. However, I want to add my own scripts to it. I just got an error:

test.coffee is using deprecated documentation syntax.

This is exactly the same as this issue. But i can not get the point of the solution.

For more detailed screenshots please have a look at this link

Thanks for your suggestions!

Check out the " Documenting Scripts " section of "Hubot scripting documentation"

The current format as of 2018-10-10 is:

# 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>

Include the header at the top of your script. If it does not follow the above format, hubot reports a deprecation warning.

On my hubot, using this format seems to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM