Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SleepTime = 60
- local m = peripheral.wrap("bottom")
- local mx,my = m.getSize()
- while true do
- m.setCursorPos(1,1)
- m.setBackgroundColor(colors.lime)
- m.setTextColor(colors.white)
- m.clear()
- m.setTextScale(1)
- m.write("_____________________________")
- m.setCursorPos(1,2)
- m.write("| |")
- m.setCursorPos(1,3)
- m.write("| ##### ##### #### #### |")
- m.setCursorPos(1,4)
- m.write("| # # # # # |")
- m.setCursorPos(1,5)
- m.write("| # # #### ### |")
- m.setCursorPos(1,6)
- m.write("| # # # # |")
- m.setCursorPos(1,7)
- m.write("| # ##### # #### |")
- m.setCursorPos(1,8)
- m.write("|___________________________|")
- i = 10
- subs = http.get("http://www.as2pik.tv/lastTip.php").readAll()
- for sub in subs:gmatch(".-[|]+") do
- m.setCursorPos(16 - sub:len()/2,i)
- if (sub:sub(1,1) == "N") then
- m.setTextColor(colors.red)
- else
- m.setTextColor(colors.white)
- end
- m.write(sub:sub(1,sub:len()-1))
- print(sub:sub(1,1))
- i = i+1
- end
- sleep(SleepTime)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement