mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 18:12:26 +00:00
Refactor echo functionality: add new echo implementation, remove deprecated echo?b1 file, and update preparation script
This commit is contained in:
13
com/echo.lua
Normal file
13
com/echo.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
--- #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"
|
||||
return
|
||||
end
|
||||
|
||||
Result.status = "ok"
|
||||
Result.answer = mod.translate(Params.msg)
|
||||
return
|
||||
Reference in New Issue
Block a user