• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

vBot extensions

lopez65

Member
Joined
May 10, 2012
Messages
289
Solutions
1
Reaction score
14
Location
Barcelona
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
 
Back
Top