/eject => /ban

This commit is contained in:
janderedev 2022-03-15 22:21:10 +01:00
parent e622914f19
commit ad5ca98091
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ Day.extend(RelativeTime);
export default {
name: 'ban',
aliases: null,
aliases: [ 'eject' ],
description: 'Ban a member from the server',
syntax: '/ban @username [10m|1h|...?] [reason?]',
removeEmptyArgs: true,
@ -85,7 +85,7 @@ export default {
.catch(e => message.reply(`Failed to ban user: \`${e}\``));
await Promise.all([
message.reply(`### @${targetName} has been banned.\n`
message.reply(`### @${targetName} has been ${Math.random() > 0.8 ? 'ejected' : 'banned'}.\n`
+ `Infraction ID: \`${infId}\` (**#${userWarnCount}** for this user)`),
logModAction('ban', message.serverContext, message.member!, targetUser._id, reason, infraction, `Ban duration: **Permanent**`),
]);

View file

@ -10,7 +10,7 @@ import { isModerator, NO_MANAGER_MSG, parseUser, storeInfraction } from "../util
export default {
name: 'kick',
aliases: [ 'yeet', 'eject', 'vent' ],
aliases: [ 'yeet', 'vent' ],
description: 'Eject a member from the server',
syntax: '/kick @username [reason?]',
removeEmptyArgs: true,
@ -62,7 +62,7 @@ export default {
}
await Promise.all([
message.reply(`### @${targetUser.username} has been ${Math.random() > 0.8 ? 'ejected' : 'kicked'}.\n`
message.reply(`### @${targetUser.username} has been ${Math.random() > 0.8 ? 'yeeted' : 'kicked'}.\n`
+ `Infraction ID: \`${infId}\` (**#${userWarnCount}** for this user)`),
logModAction('kick', message.serverContext, message.member!, targetUser._id, reason, infraction),
]);