From 7510a780a026c0eb1588d78d2082fa1388aaeda3 Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Sat, 7 Aug 2021 16:58:41 -0500 Subject: [PATCH] Cleaning up VSCODE --- bot.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.lua b/bot.lua index 8de1fe1..f71d2e4 100644 --- a/bot.lua +++ b/bot.lua @@ -7,7 +7,7 @@ discordia.extensions() client:once("ready", function() client:setGame("Astoria's bot, very sad!") print('Logged in as '.. client.user.username) - commands = tools.initialize() + Commands = tools.initialize() end) --Command handler @@ -15,7 +15,7 @@ client:on('messageCreate', function(message) if message.author.bot then return end local args = message.content:split(" ") local lowerArgs = args[1]:lower() - local command = commands[lowerArgs] + local command = Commands[lowerArgs] if command then command.exec(message, args) end @@ -23,7 +23,7 @@ end) client:on('messageCreate', function(message) if tools.messageDectection(message, "reinitialize") == true then - commands = tools.initialize() + Commands = tools.initialize() message:reply("Re-Initialized!") end end)