Browse Source

stuff

master
calexil 5 years ago
parent
commit
adec37cdb5
  1. 27
      index.js

27
index.js

@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
/**
* @author calexil <calexil@teknik.io>
* @see https://github.com/calexil/BansheeBot
* @copyright 2018
* @license GPL-3.0
*/
'use strict';
// TODO: Load config from Heroku ENV variables
const Package = require('./package.json');
const Bot = require('./bot.js');
const config = {
url: process.env.URL,
port: process.env.PORT || 5000,
dbUrl: process.env.DATABASE_URL,
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
username: process.env.BOT_USERNAME,
password: process.env.BOT_PASSWORD,
userAgent: `node:bansheebot:v${Package.version} (by /u/calexil)`
};
let bot = new Bot(config);
bot.start();
Loading…
Cancel
Save