hubot-slack-reading-list
Version:
Build a reading list from emojied reactions on Slack
24 lines (18 loc) • 584 B
JavaScript
;
require('dotenv').config()
const brain = require('./brain');
const commands = require('./commands');
const reaction = require('./reaction');
const schedule = require('./schedule');
const postLists = require('./post');
module.exports = robot => {
if(robot.adapter.constructor.name !== 'SlackBot') {
robot.logger.error('hubot-slack-reading-list: only works with the Slack adapter');
return;
}
brain.setRobot(robot);
commands(robot);
reaction(robot);
schedule(postLists(robot));
robot.logger.info('hubot-slack-reading-list: loaded and ready');
}