Added server blacklist

This commit is contained in:
loicbersier 2019-01-19 19:11:27 +01:00
parent fb68b205a6
commit 1547eb1798
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,16 @@
const { Inhibitor } = require('discord-akairo');
class serverblacklistInhibitor extends Inhibitor {
constructor() {
super('serverblacklist', {
reason: 'serverblacklist'
});
}
async exec(message) {
const blacklist = [];
return blacklist.includes(message.guild.id);
}
}
module.exports = serverblacklistInhibitor;

View file

@ -26,6 +26,9 @@ class CommandBlockedListener extends Listener {
case 'blacklist':
message.reply('You can\'t use this command because you have been blacklisted!');
break;
case 'serverblacklist':
message.reply('You can\'t use this command because the server have been blacklisted!');
break;
}
}
}