Refactor echo functionality: add new echo implementation, remove deprecated echo?b1 file, and update preparation script

This commit is contained in:
alex
2025-06-23 13:47:59 +03:00
parent 241809025d
commit 973c060e5f
3 changed files with 5 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
package.path = "./com/?.lua;" .. package.path
print = function() end
io.write = function(...) end
io.stdout = function() return nil end

View File

@@ -1,5 +1,7 @@
--- #description = "Echoes back the message provided in the 'msg' parameter."
local mod = require("_for_echo")
if not Params.msg then
Result.status = "error"
Result.error = "Missing parameter: msg"
@@ -7,5 +9,5 @@ if not Params.msg then
end
Result.status = "ok"
Result.answer = Params.msg
Result.answer = mod.translate(Params.msg)
return

View File

@@ -1,11 +0,0 @@
--- #description = "Echoes back the message provided in the 'msg' parameter. b1"
if not Params.msg then
Result.status = "error"
Result.error = "Missing parameter: msg"
return
end
Result.status = "okv2"
Result.answer = Params.msg
return