idobata-client
v0.0.2
Published
Unofficial idobata client for nodejs
Downloads
2
Readme
(UNOFFICIAL) Idobata Client for Node.js
Post messages in HTML format via generic webhook.
Usage
API_TOKEN = process.env.HUBOT_IDOBATA_API_TOKEN
IdobataClient = require('idobata-client')
module.exports = (robot) ->
robot.respond /HELLO$/i, (msg) ->
client = new IdobataClient('https://idobata.io', API_TOKEN)
client.postViaWebhook(msg.message.data.room_id, format: 'html', source: '<h1>hello</h1>')