Fix netload whitelist problems

At least I hope I did 😩
This commit is contained in:
SileNce5k 2021-03-16 00:07:49 +01:00
parent 8acdd23aca
commit dd55112b2c
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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;