UNPKG

hubot-cashbrain

Version:

Modifies the base brain to add a second set of keys to the datastore that expire and refresh themselves

16 lines (10 loc) 345 B
# including cashbrain npm install hubot-cashbrain and add a script like this to your hubot _ = require 'underscore' CashBrain = require 'hubot-cashbrain' module.exports = (robot) -> $brain = new CashBrain() robot.brain = _.extend $brain, robot.brain # todo: have the brain keep the cache up to date with setTimeouts