Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Facebook 1.3 for CraftOS 6.2+
- --]]
- version = fs.open("CraftOS/Version","r")
- if version then
- version1 = version.readLine()
- end
- if version1 > "6.2" then
- else
- error("Please update your Computer to run this app.")
- end
- function login()
- term.setTextColour(colours.white)
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- write ("Enter your username: ")
- name = read ()
- end
- function facebook()
- term.setBackgroundColour(colours.white)
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("CraftOS/StatusBar")
- if term.isColour() then
- term.setBackgroundColour(colours.blue)
- else
- term.setBackgroundColour(colours.black)
- end
- print (" Facebook ")
- term.setBackgroundColour(colours.white)
- term.setTextColour(colours.black)
- print (" ")
- print ("Welcome "..name.."! Here you can meet new people")
- print ("or talk to your friends around the world. Using")
- print ("this app you can join our server by typing")
- print ("'join chat' or 'quit' to close the app. This app")
- print ("will get updates including new features or bug")
- print ("fixes. Facebook and CraftCo 2014.")
- print (" ")
- print ("Commands:")
- print (" open twitter - Opens the Twitter section")
- print (" join chat - Joins Facebook chat")
- print (" quit - Closes the Facebook app")
- print (" ")
- write ("What would you like to do? ")
- answer = read ()
- if answer == "join chat" then
- shell.run("chat join facebook "..name)
- end
- if answer == "quit" then
- sleep(0.5)
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- end
- if answer == "" then
- term.setTextColour(colours.white)
- facebook()
- end
- if answer == "open twitter" then
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColour(colours.white)
- shell.run("CraftOS/StatusBar")
- term.setBackgroundColour(colours.lightBlue)
- print ("Twitter(C) 2014 (Facebook Addon) ")
- term.setBackgroundColour(colours.white)
- term.setCursorPos(1, 4)
- term.setBackgroundColour(colours.lightBlue)
- print ("CraftCo: (Verified) ")
- print ("Facebook 1.3 is verified to work with CraftOS 9 ")
- print ("no compatibility changes needed at all! Talking ")
- print ("about CraftOS 9, Beta 4 contains some really nice ")
- print ("features! ")
- term.setBackgroundColour(colours.white)
- print (" ")
- term.setBackgroundColour(colours.lightBlue)
- print ("TaiG9: ")
- print ("TaiG9 1.1 will support CraftOS 9 Beta 4 and the ")
- print ("release if we're lucky, things are looking good ")
- print ("at the moment! @Evasi0n8 ")
- term.setBackgroundColour(colours.white)
- print (" ")
- term.setBackgroundColour(colours.lightBlue)
- print ("Evasi0n8: ")
- print ("@TaiG9 How's the CraftOS 9 Jailbreak looking? and ")
- print ("you wouldn'y mind us using an exploit of your's to ")
- print ("release our own again would you? :P ")
- term.setTextColour(colours.black)
- term.setBackgroundColour(colours.white)
- close = read()
- if answer == "" then
- term.setTextColour(colours.white)
- facebook()
- else
- term.setTextColour(oclours.white)
- facebook()
- end
- end
- end
- login()
- facebook()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement