Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("rnApi")
- if not fs.exists("rnApi") then
- shell.run("pastebin", "get", "2RMg3kFa", "rnApi")
- end
- os.loadAPI("rnApi")
- local rn = rnApi.BetterRN:new()
- rn:open()
- function listenRednet()
- local response = rn:listen("swarmbot")
- for k,v in pairs(response) do
- if type(v) ~= "table" then
- print(k .. " : " .. v)
- else
- print(k .. ":")
- for x,y in pairs(v) do
- print("L: " .. x .. " : " .. y)
- end
- end
- end
- end
- listenRednet()
Advertisement
Add Comment
Please, Sign In to add comment