Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pastebin run AZxZBRNi
- print("welcome to goober OS")
- print("setting up....")
- print("do you have a modem(Y/N)")
- local modem = "NO MODEM"
- local event, key, is_held = os.pullEvent("key")
- if key == (keys.getName(key) == Y or (keys.getName(key) == y then
- peripheral.find("modem")
- print("modem selected")
- elseif (keys.getName(key) == N or (keys.getName(key) == n then
- print("no modem selected")
- end
- print("do you have a monitor?(Y/N)")
- local monitor = "NO MONITOR"
- if (keys.getName(key) == Y or key (keys.getName(key) == y then
- peripheral.find("monitor")
- print("monitor found!")
- elseif (keys.getName(key) == N or (keys.getName(key) == n then
- print("no monitor selected")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement