How to use the botkit/lib/Botkit.js.slackbot function in botkit

To help you get started, we’ve selected a few botkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github anonrig / slack-manager / src / index.js View on Github external
'use strict';



/**
 * Initiate necessary libraries.
 */
const config = require('./config');
const Botkit = require('botkit/lib/Botkit.js');
const controller = Botkit.slackbot({
    debug: false
});
const ManagerModel = require('./models/manager');


/**
 * Instantiate slack bot.
 */
new ManagerModel(controller);

/**
 * Spawn controller and connect to Slack server.
 */
controller
    .spawn({
        token: config.get('token')