loccode

main

Feb 10th, 2021 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. function main()
  2.  
  3. print("Version 1.0a")
  4. print("Kakoe y vas ystroystvo? (ipad/turtle/pc/server)")
  5. local device = read()
  6. device = device:lower()
  7.  
  8. if ( device == "ipad") then
  9.  
  10. local ipadFile = require("ipad")
  11. ipadFile.init()
  12.  
  13.  
  14. elseif( device == "turtle" ) then
  15.  
  16. local turtleFile = require("turtle")
  17. turtleFile.init()
  18.  
  19. else
  20.  
  21. print("Sorry, poka chto vash device ne podderjivaetsa. Jdite sleduyushix obnovleniy.")
  22.  
  23. end
  24.  
  25.  
  26.  
  27. end
  28.  
  29. main()
  30.  
Add Comment
Please, Sign In to add comment