Cleaning up VSCODE

pull/1/head
Astoria Floyd 3 years ago
parent 1a897507c4
commit 7510a780a0

@ -7,7 +7,7 @@ discordia.extensions()
client:once("ready", function() client:once("ready", function()
client:setGame("Astoria's bot, very sad!") client:setGame("Astoria's bot, very sad!")
print('Logged in as '.. client.user.username) print('Logged in as '.. client.user.username)
commands = tools.initialize() Commands = tools.initialize()
end) end)
--Command handler --Command handler
@ -15,7 +15,7 @@ client:on('messageCreate', function(message)
if message.author.bot then return end if message.author.bot then return end
local args = message.content:split(" ") local args = message.content:split(" ")
local lowerArgs = args[1]:lower() local lowerArgs = args[1]:lower()
local command = commands[lowerArgs] local command = Commands[lowerArgs]
if command then if command then
command.exec(message, args) command.exec(message, args)
end end
@ -23,7 +23,7 @@ end)
client:on('messageCreate', function(message) client:on('messageCreate', function(message)
if tools.messageDectection(message, "reinitialize") == true then if tools.messageDectection(message, "reinitialize") == true then
commands = tools.initialize() Commands = tools.initialize()
message:reply("Re-Initialized!") message:reply("Re-Initialized!")
end end
end) end)

Loading…
Cancel
Save