Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pastebinurl = "ybG0mq8e"
- function startupClear()
- f = fs.open("startup", "w")
- f.write("shell.run('pastebin run AhQm6jTc')")
- f.close()
- if fs.exists("pastebin.url") then
- f = fs.open("pastebin.url", "r")
- contents = f.readAll()
- pastebinurl = contents
- f.close()
- shell.run("delete image")
- shell.run("pastebin get "..contents.." image")
- else
- getPastebin()
- end
- end
- function getPastebin()
- print("Please type in the pastebin link")
- command = read()
- f = fs.open("pastebin.url", "w")
- f.write(command)
- f.close()
- os.reboot()
- end
- startupClear()
- m = peripheral.wrap("left")
- image = paintutils.loadImage("image")
- m.setTextScale(0.5)
- term.redirect(m)
- paintutils.drawImage(image, 1, 1)
Advertisement
Add Comment
Please, Sign In to add comment