diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-11-19 12:12:06 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-11-19 12:12:06 +0000 |
commit | de98f9c8e8468ed046dfc7208daea24e14707009 (patch) | |
tree | 280a7b38269779736ba929bb95354e9ef65d0186 /lua | |
parent | 4b86ab3af6e64c0c4bb533766c284507f0d3ee62 (diff) | |
download | agni-de98f9c8e8468ed046dfc7208daea24e14707009.tar.gz agni-de98f9c8e8468ed046dfc7208daea24e14707009.zip |
Example lua file with simple response command
Diffstat (limited to 'lua')
-rw-r--r-- | lua/hello.lua | 11 |
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 |