From b58e3f718b9526473773b5e3e6cb2a801386f1b3 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 29 Dec 2022 19:39:36 +0000 Subject: shop --- shop.lua | 11 +++++++++-- 1 file 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) -- cgit v1.2.3