From dd55112b2c36725bf3b8126a8cd7bbb1bd323a93 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 16 Mar 2021 00:07:49 +0100 Subject: [PATCH] Fix netload whitelist problems At least I hope I did :weary: --- commands/netload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/netload.js b/commands/netload.js index 3b5d0b0..1562e9c 100644 --- a/commands/netload.js +++ b/commands/netload.js @@ -7,8 +7,9 @@ module.exports = { name: 'netload', description: 'Load a module from the internet', execute({ message, args, prefix, client, owners }) { - const json = fs.readFileSync('netmoduleWhitelist.json', 'utf8'); + let json = fs.readFileSync('netmoduleWhitelist.json', 'utf8'); let whitelist = JSON.parse(json) + console.log(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."); return;