A hubot script to reply with the time in .beats! Swatch Internet Time
Update Hubot's package.json to install hubot-beat-time from npm, and update Hubot's external-scripts.json file to include the hubot-beat-time module.
...
"dependencies": {
...
"hubot-beat-time": ">= 1.0.0"
...
},
...
["hubot-awesome-module","hubot-beat-time"]
Run npm install
to install hubot-beat-time and dependencies.
Use hubot help
or check the beats.coffee file to get the full list of options with short descriptions.
hubot beat time
Using the common directory structure for hubot script packages it will be easy to manage and allow others to easily contribute to your package.
This directory is home to a couple of development scripts; bootstrap
and test
they're used to bootstrap the development environment and run tests
respectively.
This directory is home to the actual hubot scripts in the package. Your
index.coffee
entry point will load the scripts from this directory.
This directory is home to any tests you write for your scripts. This example package uses Mocha, Chai and Sinon to manage writing tests.