Guest User

Untitled

a guest
Jun 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function AskQuestion(question)
  2.  
  3. print(question)
  4. rawre = io.read()
  5. return rawre
  6.  
  7. end
  8.  
  9. print("Welcome to InterChat v1!")
  10. print("Please specify the side to which")
  11. print("you hooked up your bundled cable.")
  12. print("Possible front, left, right, top")
  13. print(", bottom, and back.")
  14. print("What would you like to do? Listen or broadcast?")
  15. print("-OPTIONS-")
  16. print("listen")
  17.  
  18. choice = AskQuestion("Which option?")
  19.  
  20. if choice =="listen" then rednet.receive(5)
  21. elseif choice == broadcast then rednet.Broadcast(AskQuestion("What too broadcast?"))
  22. else print("Invalid option")
  23. end
Add Comment
Please, Sign In to add comment