Updated commands for properly outputting the ban message to the channel, not the admin log.

This commit is contained in:
Chris 2018-04-03 20:32:31 -04:00
parent 969315dacc
commit fa3be4a7e7
3 changed files with 4 additions and 4 deletions

View file

@ -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}].`);

View file

@ -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}].`);
});
};

View file

@ -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}`);
}
});
};