mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
/eject => /ban
This commit is contained in:
parent
e622914f19
commit
ad5ca98091
|
@ -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**`),
|
||||
]);
|
||||
|
|
|
@ -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),
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue