added blacklist check

This commit is contained in:
Emily 2020-10-10 16:26:06 +11:00
parent 749f80ac9c
commit 5d3e7b4366

View file

@ -38,6 +38,10 @@ module.exports = class {
message.prefix = prefix;
};
// Naughty users can't run commands!
if (message.guild && data.member.blacklisted === true) return;
if (data.user.blacklisted === true) return;
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();