Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function os.getComputerType()
- local ret = {}
- if term.isColor() then
- prtint("Computer")
- end
- if pocket then
- print("Pocket")
- elseif turtle then
- print("turtle")
- else
- table.insert(ret, "computer")
- end
- return table.concat(ret, "_")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement