Advertisement
Guest User

Worldchat - Computercraft Transworld Chatroom

a guest
Aug 1st, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. rednet.open("right")
  2. if disk.isPresent("right")~=true then
  3.   print("No disk drive was detected in RIGHT disk drive.")
  4.   print("A valid disk must be inserted in the correct drive.")
  5. else
  6.   print("Disk ID is ".. disk.getID("right"))
  7. end
  8. print("What channel shall you use?")
  9. local channel = read()
  10. print("You chose channel ".. channel )
  11. if disk.isPresent()==true then
  12.   if disk.hasData()==true then
  13.     if disk.getLabel("right")~=clouddisk then
  14.       disk.setLabel("right" "clouddisk")
  15.       print("Disk has been labeled correctly.")
  16.     end
  17.     if fs.exist("disk\".. channel ..".log")==false then
  18.      fs.makeDir("disk\".. channel ..".log")
  19.    else
  20.      print("Everything looks okay so far...")
  21.    end
  22.  end
  23. end
  24. print("Complete end.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement