hubot-ibmcloudant-brain
Cloudant brain for Hubot. Inspired by hubot-mongodb-brain.
Installation
- Install this script:
npm install hubot-ibmcloudant-brain --save
- Add this script to
external-scripts.json
:
Configuration
Set your cloudant URL in env var CLOUDANT_URL
.
Design
- Each record (as an unqiue key of
robot.brain.set()
) is saved as a document in cloudant. - Records with
null
orundefined
value are deleted from cloudant. - Currently does NOT handle revision conflicts, i.e. if you changed data in cloudant, you'll see revision conflict errors when hubot tries to save its brain.