diff --git a/src/commands/ban.js b/src/commands/ban.js index 39ea2bd..91cfe8e 100644 --- a/src/commands/ban.js +++ b/src/commands/ban.js @@ -8,7 +8,7 @@ exports.command = function (message) { message.mentions.users.map((user) => { var count = state.warnings.filter(x => x.id === user.id && !x.cleared).length || 0; - message.channel.send(`${user} ${user.username}, You will now be banned from this channel.`); + message.channel.send(`${user}, You will now be banned from this server.`); logger.info(`${message.author.toString()} has banned ${user.toString()} ${user} ${user.username}.`); state.logChannel.send(`${message.author} has banned ${user} ${user.username} [${count}].`); diff --git a/src/commands/clearWarnings.js b/src/commands/clearWarnings.js index 2a8a683..815b9a4 100644 --- a/src/commands/clearWarnings.js +++ b/src/commands/clearWarnings.js @@ -14,7 +14,7 @@ exports.command = function (message) { message.channel.send(`${user}, you have no warnings to clear.`); } - logger.info(`${message.author.toString()} has cleared all warnings for ${user.toString()} [${count}].`); - state.logChannel.send(`${message.author.toString()} has cleared all warnings for ${user.toString()} [${count}].`); + logger.info(`${message.author.toString()} has cleared all warnings for ${user.toString()} [${count.length}].`); + state.logChannel.send(`${message.author.toString()} has cleared all warnings for ${user.toString()} [${count.length}].`); }); }; diff --git a/src/commands/warn.js b/src/commands/warn.js index f729603..8b1ad7b 100644 --- a/src/commands/warn.js +++ b/src/commands/warn.js @@ -18,7 +18,7 @@ exports.command = function (message) { state.stats.warnings += 1; if (count + 1 >= 3) { - state.logChannel.send(`.ban ${user}`); + message.channel.send(`.ban ${user}`); } }); };