Proper Fumo Functionality added.

pull/6/head
Astoria Floyd 3 years ago
parent 37d1167ae4
commit e5af875034

@ -0,0 +1,3 @@
fumoFileText=$(find fumoGif/* | grep -i .gif)
fumoFileNumbers=$(wc -l <<< "$fumoFileText")
echo "$fumoFileNumbers" > "docs/fumoFile"

@ -0,0 +1,2 @@
fumoFileText=$(find fumoGif/* | grep -i .gif)
echo "$fumoFileText" > "docs/fumoFile"

@ -126,22 +126,18 @@ function tools.massDetection(folder, filetype)
end
function tools.fumoLines()
os.execute("/bin/bash fumoLines.sh")
local file = io.open("./fumoFile", "r")
os.execute("/bin/bash API/fumoLines.sh")
local file = io.open("./docs/fumoFile", "r")
local fumoFile = file:read()
file:close()
return(fumoFile)
end
function tools.fumoClone()
os.execute("/bin/bash fumoCopy.sh")
end
function tools.fumoList()
local lineList = tools.fumoLines()
local fumoList = {}
os.execute("/bin/bash fumoList.sh")
local file = io.open("./fumoFile", "r")
os.execute("/bin/bash API/fumoList.sh")
local file = io.open("./docs/fumoFile", "r")
for i = lineList,1,-1
do
local number = i

@ -29,11 +29,10 @@ end
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)
local msg = fumo
message.channel:send{file = msg}
end
};

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

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Before

Width:  |  Height:  |  Size: 356 KiB

After

Width:  |  Height:  |  Size: 356 KiB

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before

Width:  |  Height:  |  Size: 1010 KiB

After

Width:  |  Height:  |  Size: 1010 KiB

Before

Width:  |  Height:  |  Size: 625 KiB

After

Width:  |  Height:  |  Size: 625 KiB

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 12 MiB

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

@ -1,3 +0,0 @@
fumoFileText=$(find fumo | grep -i .gif)
fumoFileNumbers=$(wc -l <<< "$fumoFileText")
echo "$fumoFileNumbers" > "fumoFile"

@ -1,2 +0,0 @@
fumoFileText=$(find fumo | grep -i .gif)
echo "$fumoFileText" > "fumoFile"
Loading…
Cancel
Save