forked from Supositware/Haha-Yes
Added server blacklist
This commit is contained in:
parent
fb68b205a6
commit
1547eb1798
2 changed files with 19 additions and 0 deletions
16
event/inhibitors/serverblacklist.js
Normal file
16
event/inhibitors/serverblacklist.js
Normal 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;
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue