mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-22 23:25:32 +00:00
Updated commands for properly outputting the ban message to the channel, not the admin log.
This commit is contained in:
parent
969315dacc
commit
fa3be4a7e7
|
@ -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}].`);
|
||||
|
||||
|
|
|
@ -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}].`);
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue