From de98f9c8e8468ed046dfc7208daea24e14707009 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 19 Nov 2017 12:12:06 +0000 Subject: Example lua file with simple response command --- lua/hello.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/hello.lua (limited to 'lua') diff --git a/lua/hello.lua b/lua/hello.lua new file mode 100644 index 0000000..d8d8776 --- /dev/null +++ b/lua/hello.lua @@ -0,0 +1,11 @@ +rpc_resp = {} +rpc_resp["result"] = "KindOfNone" +rpc_resp["error"] = "Good" +rpc_resp["id"] = -1 + +function callback(rpc_req) + + rpc_resp["result"] = "o/" + + return rpc_resp +end \ No newline at end of file -- cgit v1.2.3