'use strict';

var Dumbledore = require('../lib/dumbledore');

/**
 * Environment variables used to configure the bot:
 *
 *  BOT_API_KEY : the authentication token to allow the bot to connect to your slack organization. You can get your
 *      token at the following url: https://<yourorganization>.slack.com/services/new/bot (Mandatory)
 *  BOT_DB_PATH: the path of the SQLite database used by the bot
 *  BOT_NAME: the username you want to give to the bot within your organisation.
 *  BOT_GITHUB_CHANNEL_ID: If your team uses a github slack channel for alerts, The Gitub Channel Id goes here.
 */
var token = process.env.BOT_API_KEY || require('../token');
var dbPath = process.env.BOT_DB_PATH;
var name = process.env.BOT_NAME;
var githubChannel = process.env.BOT_GITHUB_CHANNEL_ID;

var dumbledore = new Dumbledore({
    token: token,
    dbPath: dbPath,
    name: name,
    githubChannel: githubChannel
});

dumbledore.run();


'use strict';

var Dumbledore = require('../lib/dumbledore');

/**
 * Environment variables used to configure the bot:
 *
 *  BOT_API_KEY : the authentication token to allow the bot to connect to your slack organization. You can get your
 *      token at the following url: https://<yourorganization>.slack.com/services/new/bot (Mandatory)
 *  BOT_DB_PATH: the path of the SQLite database used by the bot 
 *  BOT_NAME: the username you want to give to the bot within your organisation.
 *  BOT_GITHUB_CHANNEL_ID: If your team uses a github slack channel for alerts, The Gitub Channel Id goes here.
 */
var token = process.env.BOT_API_KEY || require('../token');
var dbPath = process.env.BOT_DB_PATH;
var name = process.env.BOT_NAME;
var githubChannel = process.env.BOT_GITHUB_CHANNEL_ID;

var dumbledore = new Dumbledore({
    token: token,
    dbPath: dbPath,
    name: name,
    githubChannel: githubChannel
});

dumbledore.run();


Update bot.js