Advertisement
MadScience2728

Run wireless shell

Mar 5th, 2021
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local modem = peripheral.wrap("right")
  2. modem.open(101)
  3. print("Channel 101 is open")
  4.  
  5. while true do
  6.     local a,b,c,d,e,f = os.pullEvent("modem_message")
  7.     print("Message received: " .. tostring(e))
  8.     shell.run(tostring(message))
  9. end
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement