'use strict';
require('./logging.js');
const settings = require('./settings.json');
const Eris = require('eris');
const client = new Eris(settings.token);
const commands = new (require('./commands/dispatcher.js'))();
client.connect();
client.on('ready', () => {
    commands.register('info', new (require('./commands/info.js'))());
    commands.register('help', new (require('./commands/help.js'))());
    console.log('Ready!');
});

client.on('error', (err) => console.error(err));

client.on('messageCreate', (msg) => {
    if (!msg.channel.guild || !msg.content.startsWith(settings.prefix))
        return;
    const content = msg.content;
    let command = content.substring(settings.prefix.length);
    if (command.length === 0)
        return;
    let args = [];
    if (content.includes(' ')) {
        args = content.substring(command.length + settings.prefix.length + 1).split(' ');
        command = command.substring(0, command.indexOf(' '));
    }
    commands.process(command, msg, args);
});

module.exports = {client: client, commands: commands, settings: settings};

@@ -73,24 +73,69 @@
 ngs.json');%0A
+settings.prefix = settings.prefix %7C%7C %22ham.%22;%0A
 const Eris =

Add default prefix