concierge-bot
Version:
Extensible general purpose chat bot.
43 lines (35 loc) • 1.18 kB
JavaScript
/** Node.js server for a bot
*
* Herein lies the Node.js serverside script to tell node what to do to ensure
* we get all the magical goodness that is:
* (Karma + Sassy) * Facebook - Hipchat = Concierge
* Note: it does waaaaaaay more than this now. It even runs on slack!
*
* Written By:
* Matthew Knox
*
* Contributors:
* Dion Woolley
* Jay Harris
* Matt Hartstonge
* (Others, mainly strange people)
*
* License:
* MIT License. All code unless otherwise specified is
* Copyright (c) Matthew Knox and Contributors 2016.
*/
;
const direct = require.main === module;
// Load NodeJS Modifications/Variables
require('./core/startup/extensions.js')(__dirname, direct);
const startup = require('./core/startup/startup.js');
// Directly called?
if (direct) {
const cli = require('./core/startup/cli.js'),
args = cli(process.argv.slice(2)),
startArgs = args.unassociated.map(arg => arg.toLowerCase());
startup.run(startArgs);
return;
}
module.exports = require('./core/startup/exports.js')(startup);