From 0328f06dffe32f53d5de6d45a32e8c53becd4253 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 24 Apr 2022 02:24:17 +0200 Subject: [PATCH] Small syntax fixes to make code look cleaner idk fucking okay --- commands/info/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/info/help.js b/commands/info/help.js index a554736..4b46159 100644 --- a/commands/info/help.js +++ b/commands/info/help.js @@ -14,17 +14,17 @@ module.exports = { execute({ message, args, prefix, client }) { let commands = "" let commandFiles = getSubdirFiles('commands/') - let x = 0 + let x = false; let fieldName = "General"; if (args[0] == "netmodules") { commandFiles = fs.readdirSync('../../netload').filter(file => file.endsWith('.js')); if (commandFiles.length == 0) { message.channel.send("There are no netmodules currently loaded.") - x = 1; + x = true; } } - if (x == 1) return; + if (x) return; const embed = new Discord.MessageEmbed() .setColor(15780145)