summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/example.lua')
-rw-r--r--Sluift/example.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/Sluift/example.lua b/Sluift/example.lua
new file mode 100644
index 0000000..4083848
--- /dev/null
+++ b/Sluift/example.lua
@@ -0,0 +1,6 @@
+require "sluift"
+
+c = sluift.connect(os.getenv("SWIFT_CLIENTTEST_JID"), os.getenv("SWIFT_CLIENTTEST_PASS"))
+v = c:get_version("swift.im")
+print(v["name"], v["version"], v["os"])
+c:disconnect()