Prettify json files

This commit is contained in:
SileNce5k 2021-06-19 15:19:26 +02:00
parent e20c67467e
commit f6c4f19a74
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ module.exports = {
}
if (args[0] == "whitelist" && owners.indexOf(message.author.id.toString()) >= 0) {
whitelist.push(args[1])
fs.writeFileSync("/data/netmoduleWhitelist.json", JSON.stringify(whitelist))
fs.writeFileSync("/data/netmoduleWhitelist.json", JSON.stringify(whitelist, null, 4))
return;
}
if (!args[0] && message.attachments.size == 0) {