added random message to blacklisted user & a message to blacklisted server

This commit is contained in:
Supositware 2019-03-23 23:55:52 +01:00
parent 68b16cf86c
commit 64d56ddba7

View file

@ -11,6 +11,7 @@ class CommandBlockedListener extends Listener {
async exec(message, command, reason) { async exec(message, command, reason) {
console.log(`${message.author.username} was blocked from using ${command.id} because of ${reason}!`); console.log(`${message.author.username} was blocked from using ${command.id} because of ${reason}!`);
let ownerMessage; let ownerMessage;
let blacklistMessage;
switch(reason) { switch(reason) {
case 'owner': case 'owner':
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']; 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'];
@ -24,9 +25,11 @@ class CommandBlockedListener extends Listener {
message.reply('You can\'t use this command in DM!'); message.reply('You can\'t use this command in DM!');
break; break;
case 'blacklist': case 'blacklist':
message.reply('You can\'t use this command because you have been blacklisted!'); blacklistMessage = ['bro... i think you are blacklisted.... OWNED!!!', 'You can\'t use this command because you have been blacklisted!',' you are blacklisted!!!1111!! be less naughty next time!', 'blacklisted,,,,,, lol owned bro'];
break; blacklistMessage = blacklistMessage[Math.floor( Math.random() * blacklistMessage.length )];
message.reply(blacklistMessage); break;
case 'serverblacklist': case 'serverblacklist':
message.channel.send('This server have been blacklisted... to appeal contact Supositware#1616, and now i will yeet out of here');
message.guild.leave(); message.guild.leave();
break; break;
} }