forked from Supositware/Haha-Yes
added random message when people try to execute a command for the owner and added a break; i forgot
This commit is contained in:
parent
362e07652e
commit
b821dbb390
1 changed files with 5 additions and 2 deletions
|
@ -12,7 +12,9 @@ class CommandBlockedListener extends Listener {
|
|||
console.log(`${message.author.username} was blocked from using ${command.id} because of ${reason}!`);
|
||||
switch(reason) {
|
||||
case "Owner":
|
||||
message.reply('Nice try but you aren\'t the owner <a:memed:433320880135733248>');
|
||||
let ownerMessage = ["Nice try but you aren't the owner <a:memed:433320880135733248>", "LOADING SUPER SECRET COMMAND <a:loadingmin:527579785212329984> Wait a minute... you aren't the owner!", "uhm, how about no"];
|
||||
let ownerMessage = ownerMessage[Math.floor( Math.random() * ownerMessage.length )];
|
||||
message.reply(ownerMessage);
|
||||
break;
|
||||
case "clientPermissions":
|
||||
message.reply('Im missing the required permissions for this command!');
|
||||
|
@ -21,7 +23,8 @@ class CommandBlockedListener extends Listener {
|
|||
message.reply('You are missing some permissions to use this command!');
|
||||
break;
|
||||
case "blacklist":
|
||||
message.reply('You can\'t use this command because you have been blacklisted!')
|
||||
message.reply('You can\'t use this command because you have been blacklisted!');
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue