Fix netload whitelist issue
This commit is contained in:
parent
837b6ea13e
commit
8b3387d109
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module.exports = {
|
||||||
"The bot operator also has to have this enabled in the config."
|
"The bot operator also has to have this enabled in the config."
|
||||||
],
|
],
|
||||||
execute({ message, args, prefix, client, owners }) {
|
execute({ message, args, prefix, client, owners }) {
|
||||||
let json = fs.readFileSync('../../data/netmoduleWhitelist.json', 'utf8');
|
let json = fs.readFileSync('./data/netmoduleWhitelist.json', 'utf8');
|
||||||
let whitelist = JSON.parse(json)
|
let whitelist = JSON.parse(json)
|
||||||
if (json.indexOf(message.author.id.toString()) == -1) {
|
if (json.indexOf(message.author.id.toString()) == -1) {
|
||||||
message.channel.send("You do not have permissions to use this command.");
|
message.channel.send("You do not have permissions to use this command.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue