From bb1d952d18ef6b45888e34122242d0fc8b35b395 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Sun, 10 Feb 2019 15:00:17 +0100 Subject: [PATCH] Fixes in code quality --- bot.js | 2 +- lib/cmd.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"