rungholt

rednetLookupCli

May 17th, 2022 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local args = { ... }
  2. protocol = (args[1])
  3. hostname = (args[2])
  4.  
  5. local computers = { rednet.lookup(protocol, hostname) }
  6. print(#computers .. " computers available to chat")
  7. for _, computer in pairs(computers) do
  8.     print("Computer #" .. computer)
  9. end
Add Comment
Please, Sign In to add comment