From b821dbb390022a35a3d29b1f5ffc576d49216220 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 1 Jan 2019 08:20:59 +0100 Subject: [PATCH] added random message when people try to execute a command for the owner and added a break; i forgot --- listeners/commandblocked.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/listeners/commandblocked.js b/listeners/commandblocked.js index 03fbd503..96f92f7f 100644 --- a/listeners/commandblocked.js +++ b/listeners/commandblocked.js @@ -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 '); + let ownerMessage = ["Nice try but you aren't the owner ", "LOADING SUPER SECRET COMMAND 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; } }