Advertisement
DogePastes

Untitled

Apr 23rd, 2022
1,130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. function options()
  2.     print("Options:")
  3.     print("Start")
  4.     print("Stop")
  5.     print("Return")
  6. end
  7.  
  8. rednet.open("back")
  9. print("Enter 'q' to exit or 'help' for commands.")
  10.  
  11. while true do
  12.     cmd = string.lower(read())
  13.     if cmd == "q" then
  14.         break
  15.     elseif cmd == "help" then
  16.         options()
  17.     elseif cmd == "start" or cmd == "stop" or "return" then
  18.         rednet.broadcast(cmd)
  19.     else
  20.         print("That is not a command, please enter 'q' to exit or 'help' for commands.")
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement