Created
May 17, 2017 17:09
-
-
Save gkspranger/84701109685f1717f26a00da3a687428 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Commands: | |
// hubot hello - replies with "world"! | |
const logger = require("winston"); | |
module.exports = function(robot) { | |
robot.respond(/hello$/i, { id: "hello" }, function(message) { | |
message.send("world!"); | |
logger.log("info", "i like to log stuff!", { yourObject: "some random data" }); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment