Advertisement
EliteGaming

ImageLoader

Jul 26th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. pastebinurl = "ybG0mq8e"
  2.  
  3. function startupClear()
  4. f = fs.open("startup", "w")
  5. f.write("shell.run('pastebin run AhQm6jTc')")
  6. f.close()
  7. if fs.exists("pastebin.url") then
  8. f = fs.open("pastebin.url", "r")
  9. contents = f.readAll()
  10. pastebinurl = contents
  11. f.close()
  12. shell.run("delete image")
  13. shell.run("pastebin get "..contents.." image")
  14. else
  15. getPastebin()
  16. end
  17. end
  18.  
  19. function getPastebin()
  20. print("Please type in the pastebin link")
  21. command = read()
  22. f = fs.open("pastebin.url", "w")
  23. f.write(command)
  24. f.close()
  25. os.reboot()
  26. end
  27.  
  28. startupClear()
  29. m = peripheral.wrap("left")
  30. image = paintutils.loadImage("image")
  31. m.setTextScale(0.5)
  32. term.redirect(m)
  33. paintutils.drawImage(image, 1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement