Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function options()
- print("Options:")
- print("Start")
- print("Stop")
- print("Return")
- end
- rednet.open("back")
- print("Enter 'q' to exit or 'help' for commands.")
- while true do
- cmd = string.lower(read())
- if cmd == "q" then
- break
- elseif cmd == "help" then
- options()
- elseif cmd == "start" or cmd == "stop" or "return" then
- rednet.broadcast(cmd)
- else
- print("That is not a command, please enter 'q' to exit or 'help' for commands.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement