Advertisement
Mlopike

Untitled

Mar 27th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. while ( true )
  2. do
  3. write ("root/redkali/: ")
  4. print()
  5. command = read()
  6. side = "left"
  7. if command == "help" then
  8. print ("KaliRedLinuxTerminal help")
  9. print()
  10. print ("rrs - RemoteRedstoneSignal")
  11. print ("help - View this tip")
  12. print()
  13. else
  14. if command == "rrs" then
  15. print()
  16. write ("SignalTime: ")
  17. time = read()
  18. print("Connected")
  19. sleep(1)
  20. print("Signal on")
  21. rs.setOutput(side, true)
  22. sleep ("time")
  23. print("Signal off")
  24. print()
  25. rs.setOutput(side, false)
  26. else
  27. print ("Command not found")
  28. sleep(1)
  29. end
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement