Haha-Yes/event/inhibitors/serverblacklist.js

19 lines
439 B
JavaScript
Raw Normal View History

2019-01-19 19:11:27 +01:00
const { Inhibitor } = require('discord-akairo');
2019-10-06 20:29:42 +02:00
const guildBlacklist = require('../../models').guildBlacklist;
2019-01-19 19:11:27 +01:00
class serverblacklistInhibitor extends Inhibitor {
constructor() {
super('serverblacklist', {
reason: 'serverblacklist'
});
}
async exec(message) {
2019-10-06 20:29:42 +02:00
const blacklist = await guildBlacklist.findOne({where: {guildID:message.guild.id}});
if (blacklist) return true;
2019-01-19 19:11:27 +01:00
}
}
module.exports = serverblacklistInhibitor;