summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shop.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/shop.lua b/shop.lua
index 0272625..d5809db 100644
--- a/shop.lua
+++ b/shop.lua
@@ -1,3 +1,10 @@
-sres = http.post("https://krist.dev/ws/start","").readAll()
+sres =textutils.unserializeJSON( http.post("https://krist.dev/ws/start","").readAll())
+assert(sres.ok,"not ok")
+wsurl = sres.url
+
+
+
+mtop = peripheral.wrap"top"
+mtop.write("DIAMONDS 5kst each")
+
-print(sres)