Files
GoSally/com/Utils/Echo.lua
Alexey 6d2bf5cdd2 add "about" to scripts
you can get a description if you send a request where in params there is a field about with any content
2025-07-30 18:32:38 +03:00

22 lines
367 B
Lua

if In.Params and In.Params.about then
Out.Result = {
description = "Echo of the message",
params = {
msg = "just message"
}
}
return
end
local function validate()
if not In.Params.msg or In.Params.msg == "" then
Out.Error = {
message = "there must be a msg parameter"
}
return
end
end
validate()
Out.Result.answer = In.Params.msg