From ad5ca98091526b467b6fe842cde9105d64127b78 Mon Sep 17 00:00:00 2001 From: janderedev Date: Tue, 15 Mar 2022 22:21:10 +0100 Subject: [PATCH] /eject => /ban --- bot/src/bot/commands/ban.ts | 4 ++-- bot/src/bot/commands/kick.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/src/bot/commands/ban.ts b/bot/src/bot/commands/ban.ts index 29f250b..a80c2eb 100644 --- a/bot/src/bot/commands/ban.ts +++ b/bot/src/bot/commands/ban.ts @@ -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**`), ]); diff --git a/bot/src/bot/commands/kick.ts b/bot/src/bot/commands/kick.ts index 6d15000..8346255 100644 --- a/bot/src/bot/commands/kick.ts +++ b/bot/src/bot/commands/kick.ts @@ -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), ]);