Advertisement
pedrosgali

newTStart

Mar 24th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. os.loadAPI("API/move")
  2.  
  3. function listen()
  4.     msg = 0
  5.     while msg == 0 do
  6.         id, msg = rednet.receive()
  7.     end
  8. end
  9.  
  10. if not move.myTab.home then
  11.     move.goHome()
  12. end
  13.  
  14. move.report("Idle")
  15.  
  16. while true do
  17.     listen()
  18.     shell.run("execute "..msg)
  19. end
  20.  
  21. sleep(5)
  22. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement