Fumo Mode Working. Relies on a overly specific server setup, fix later.

pull/6/head
astoria 3 years ago
parent cf8afc47ff
commit 37d1167ae4

@ -133,6 +133,10 @@ function tools.fumoLines()
return(fumoFile)
end
function tools.fumoClone()
os.execute("/bin/bash fumoCopy.sh")
end
function tools.fumoList()
local lineList = tools.fumoLines()
local fumoList = {}
@ -144,7 +148,6 @@ function tools.fumoList()
fumoList[number]=file:read()
end
file:close()
print(fumoList[1])
return(fumoList)
end

@ -25,6 +25,18 @@ local commands = { -- Define commands its a table that will contain our commands
end
};
[prefix..'fumo'] = { -- To be implemented later..
exec = function (message)
local fumoLines = tools.fumoLines()
local fumoList = tools.fumoList()
tools.fumoClone()
tools.seed()
local fumo = fumoList[math.random(fumoLines)]
local msg = "https://broken-moon.net/"..fumo
message.channel:send(msg)
end
};
--[[
[prefix..'figlet'] = { -- Parrots input to figlet, then echos it to the same channel you are in.
exec = function (message)

@ -10,13 +10,6 @@ local commands = { -- Define commands its a table that will contain our commands
end
};
[prefix..'fumo'] = { -- To be implemented later..
exec = function (message)
local fumoLines = tools.fumoLines()
local fumoList = tools.fumoList()
end
};
}
function experimentalCommands.initialize()

@ -1 +1,2 @@
echo "$(cp fumo/* /var/www/html/fumo)"
echo "$(rm /var/www/html/fumo/*)"
echo "$(cp fumo/*.gif /var/www/html/fumo)"
Loading…
Cancel
Save