summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-12-29 19:39:36 +0000
committerubq323 <ubq323@ubq323.website>2022-12-29 19:39:36 +0000
commitb58e3f718b9526473773b5e3e6cb2a801386f1b3 (patch)
treed645c71d09cc29372927ebe1e738559d92cd4cfc
parentad0097e83e0b03e4006e74adbdd0331a5425e659 (diff)
shop
-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)