fix: correct order of variable assignment in playTTSFile function
This commit is contained in:
@@ -35,8 +35,8 @@ local function playInternalAlarm(speakers)
|
||||
end
|
||||
|
||||
local function playTTSFile(speakers, value)
|
||||
|
||||
local url = "https://music.madefor.cc/tts?text=" .. textutils.urlEncode(message)
|
||||
local message = textutils.urlEncode(value)
|
||||
local url = "https://music.madefor.cc/tts?text=" .. message
|
||||
local response, err = http.get { url = url, binary = true }
|
||||
if not response then error(err, 0) end
|
||||
while true do
|
||||
|
||||
Reference in New Issue
Block a user