#!/usr/bin/env node

'use strict';

/**
 * NorrisBot launcher script.
 *
 * @author Luciano Mammino <lucianomammino@gmail.com>
 */

var NorrisBot = require('../lib/norrisbot');
var ElizaBot = require('../lib/elizabot');

/**
 * 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.
 */
var token = process.env.BOT_API_KEY || require('../token') || 'xoxb-17093932528-SCnCcJyR7kiA5sfytZ3Llqyj';
var name = "Chotu Ram";

var chotu = new NorrisBot({
    token: token,
    name: name,
    eliza: ElizaBot
});

chotu.run();

@@ -683,31 +683,8 @@
 Y %7C%7C
- require('../token') %7C%7C
  'xo

Remove token module requirement