Fix netload whitelist issue

This commit is contained in:
SileNce5k 2022-01-14 19:35:33 +01:00
parent 837b6ea13e
commit 8b3387d109
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -14,7 +14,7 @@ module.exports = {
"The bot operator also has to have this enabled in the config."
],
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)
if (json.indexOf(message.author.id.toString()) == -1) {
message.channel.send("You do not have permissions to use this command.");