From 8b3387d1098483ecf3810f9c348763be5b20edc4 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Fri, 14 Jan 2022 19:35:33 +0100 Subject: [PATCH] Fix netload whitelist issue --- commands/misc/netload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/netload.js b/commands/misc/netload.js index 1ead3ae..275bbe9 100644 --- a/commands/misc/netload.js +++ b/commands/misc/netload.js @@ -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.");