hello
Can someone explain to me the steps a little clearer that are seen in this example
AutoLoader- vBot extensions#75
This allows you to drag and drop extensions into vBot without editing the vBot cavebot.lua file to load them.
Find tile CONFIGNAME\vBot\cavebot.lua
Find --dofile("/cavebot/extension_template.lua")
And add the code below on the line below it.
Create a folder called "extensions" in path CONFIGNAME\vBot\cavebot <-- path CONFIGNAME?
--dofile("/cavebot/extension_template.lua")
local extFiles = g_resources.listDirectoryFiles("/bot/" .. configName .. "/cavebot/extensions", false, false) <-- ConfigName?
for i, file in ipairs(extFiles) do
local ext = file:split(".")
if ext[#ext]:lower() == "lua" then
dofile('/cavebot/extensions/'..file)
end
end
I only have doubts where I put "<--"
thanx
Can someone explain to me the steps a little clearer that are seen in this example
AutoLoader- vBot extensions#75
This allows you to drag and drop extensions into vBot without editing the vBot cavebot.lua file to load them.
Find tile CONFIGNAME\vBot\cavebot.lua
Find --dofile("/cavebot/extension_template.lua")
And add the code below on the line below it.
Create a folder called "extensions" in path CONFIGNAME\vBot\cavebot <-- path CONFIGNAME?
--dofile("/cavebot/extension_template.lua")
local extFiles = g_resources.listDirectoryFiles("/bot/" .. configName .. "/cavebot/extensions", false, false) <-- ConfigName?
for i, file in ipairs(extFiles) do
local ext = file:split(".")
if ext[#ext]:lower() == "lua" then
dofile('/cavebot/extensions/'..file)
end
end
I only have doubts where I put "<--"
thanx