diff --git a/bot.js b/bot.js index 370fb3d..8769c37 100644 --- a/bot.js +++ b/bot.js @@ -218,7 +218,7 @@ class Bot { }); // returns the time the bot is running - cmd.createGlobalCommand(prefix , globcommands.info.uptime, () => { + cmd.createGlobalCommand(prefix, globcommands.info.uptime, () => { let uptime = utils.getSplitDuration(this.client.uptime); return new Discord.RichEmbed().setDescription(` **${uptime.days}** days diff --git a/lib/cmd.js b/lib/cmd.js index 997e5e4..a6dd546 100644 --- a/lib/cmd.js +++ b/lib/cmd.js @@ -157,7 +157,7 @@ exports.Servant = class { return this.processCommand(msg, globResult, content); } else if (commands.length < (config.maxCmdSequenceLength || 5)) { let answers = []; - let previousCommand = (commands[0].match(/^.\w+/) || [])[0];; + let previousCommand = (commands[0].match(/^.\w+/) || [])[0]; for (let i = 0; i < commands.length; i++) { answers.push(this.processCommand(msg, globResult[i], commands[i], true, previousCommand)); // return function to avoid "race conditions"