Added comments

pull/6/head
Astoria Floyd 3 years ago
parent e5af875034
commit 683bc57921

@ -125,6 +125,7 @@ function tools.massDetection(folder, filetype)
return(result) return(result)
end end
-- Checks fumoFile after running the fumoLine numbering script, to get the number of .gif files there are.
function tools.fumoLines() function tools.fumoLines()
os.execute("/bin/bash API/fumoLines.sh") os.execute("/bin/bash API/fumoLines.sh")
local file = io.open("./docs/fumoFile", "r") local file = io.open("./docs/fumoFile", "r")
@ -133,6 +134,7 @@ function tools.fumoLines()
return(fumoFile) return(fumoFile)
end end
-- Creates a table of every gif in the /fumoGif folder. Uses the fumoList script to get their location, and the fumoLine script to get what line number they are, which is their key
function tools.fumoList() function tools.fumoList()
local lineList = tools.fumoLines() local lineList = tools.fumoLines()
local fumoList = {} local fumoList = {}

@ -25,7 +25,7 @@ local commands = { -- Define commands its a table that will contain our commands
end end
}; };
[prefix..'fumo'] = { -- To be implemented later.. [prefix..'fumo'] = { -- Posts a random fumo gif from /fumoGif, fully reloads the list of gifs each run
exec = function (message) exec = function (message)
local fumoLines = tools.fumoLines() local fumoLines = tools.fumoLines()
local fumoList = tools.fumoList() local fumoList = tools.fumoList()

Loading…
Cancel
Save