added blacklist check
This commit is contained in:
parent
749f80ac9c
commit
5d3e7b4366
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ module.exports = class {
|
||||||
message.prefix = prefix;
|
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 args = message.content.slice(prefix.length).trim().split(/ +/g);
|
||||||
const command = args.shift().toLowerCase();
|
const command = args.shift().toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue