updated
This commit is contained in:
@@ -47,17 +47,17 @@ local function createSoundFile(fileName)
|
|||||||
--print("Added placeholder sound file: " .. name)
|
--print("Added placeholder sound file: " .. name)
|
||||||
|
|
||||||
local response = http.get(fullPath)
|
local response = http.get(fullPath)
|
||||||
|
|
||||||
print("Downloading sound file: " .. name)
|
print("Downloading sound file: " .. name)
|
||||||
|
sleep(10)
|
||||||
local fileData = response.readAll()
|
local fileData = response.readAll()
|
||||||
|
|
||||||
local file = fs.open(name,"w")
|
local file = fs.open(name,"w")
|
||||||
|
|
||||||
file.write(fileData)
|
file.write(fileData)
|
||||||
file.close()
|
|
||||||
|
|
||||||
|
file.close()
|
||||||
response.close()
|
response.close()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user