Advertisement
SirBaconBitz

Untitled

Mar 9th, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. args = {...}
  2. if #args == 0 then
  3.     print("Usage: alert <monitor side>")
  4. else
  5.     monitor = peripheral.wrap(args[1])
  6.     while true do
  7.         receive = http.post("http://www.ccpost.esy.es/ccpost.php", "FUCK NO")
  8.         alert = receive.readAll()
  9.         length = string.len(alert)
  10.         monsize = monitor.getSize()
  11.         start = (monsize - monsize) - length
  12.         monitor.clear()
  13.         for i = start,monsize + 1 do
  14.             monitor.setCursorPos(i,1)
  15.             monitor.write(alert)
  16.             sleep(0.1)
  17.             if i ~= monsize then
  18.                 monitor.clear()
  19.             end
  20.         end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement