hubot-idobata
Advanced tools
Comparing version 0.0.5 to 0.1.0
{ | ||
"name": "hubot-idobata", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Idobata adapter for GitHub's Hubot", | ||
@@ -5,0 +5,0 @@ "main": "./src/idobata", |
@@ -40,2 +40,21 @@ # hubot-idobata | ||
## Adapter specified API | ||
### Send message as HTML | ||
You can `Adapter#sendHTML` instead of `Robot#send` to create message as HTML. | ||
``` coffee | ||
module.exports = (robot) -> | ||
robot.respond /PING$/i, (msg) -> | ||
# This API creates the palin text message. | ||
# msg.send "PONG" | ||
adapter = msg.robot.adapter | ||
envelope = msg.envelope | ||
# This API creates the HTML message. | ||
adapter.sendHTML envelope, '<h1>hi</hi>' | ||
``` | ||
## Deploying to heroku | ||
@@ -42,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60586
125