Added things

This commit is contained in:
ahoZiorce
2018-07-01 19:21:42 +02:00
parent 1fcb230963
commit c6c9dbf1c5
3 changed files with 22 additions and 1 deletions

View File

@@ -1,12 +1,18 @@
const Eris = require('eris');
const configM = require('./src/configManager');
const logger = require('./src/logger');
const commandL = require('./src/commandLoader');
// TODO: botClient.js
if (!configM.loadConfig('./config.json')) {
logger.error('No config file has been found in the directory, please configure the template that has been created.');
}
logger.log('Config loaded');
commandL.load();
logger.log('Commands loaded');
var bot = new Eris(configM.config.token);
bot.on('ready', () => {
logger.log(bot.user.username + '#' + bot.user.discriminator);