summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-11-19 12:12:06 +0000
committerFreeArtMan <dos21h@gmail.com>2017-11-19 12:12:06 +0000
commitde98f9c8e8468ed046dfc7208daea24e14707009 (patch)
tree280a7b38269779736ba929bb95354e9ef65d0186
parent4b86ab3af6e64c0c4bb533766c284507f0d3ee62 (diff)
downloadagni-de98f9c8e8468ed046dfc7208daea24e14707009.tar.gz
agni-de98f9c8e8468ed046dfc7208daea24e14707009.zip
Example lua file with simple response command
-rw-r--r--lua/hello.lua11
1 files changed, 11 insertions, 0 deletions
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