diff options
author | ubq323 <ubq323@ubq323.website> | 2022-12-30 00:00:45 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-12-30 00:00:45 +0000 |
commit | 69be7325be00c5cc56138228b667b5c2e20947ec (patch) | |
tree | ee3738f2b3705effc64512faed4cd56724cd9c1a | |
parent | 792efa83c47720c375ae23b9d71da04f25982df3 (diff) |
shop
-rw-r--r-- | shop.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -92,12 +92,11 @@ function run_shop() while true do msgtxt = assert(ws.receive(),"ws error") msg = textutils.unserializeJSON(msgtxt) - if msg.type ~= "keepalive" then print(msgtxt) end if msg.type == "response" and msg.responding_to_type == "me" then our_addr = msg.address.address end if msg.type == "event" and msg.event == "transaction" then - require"cc.pretty".pretty_print(proctrans(msg.transaction)) + proctrans(msg.transaction) end end end |