Advertisement
Pinkishu

Untitled

Jul 25th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local shell = require("shell")
  2. local os = require("os")
  3.  
  4. while true do
  5.     local p, e = shell.execute("/usr/bin/ircChatbox.lua")
  6.     print(e)
  7.     os.sleep(5)
  8.     if not p then
  9.       if e:find("UPDATENOW") then
  10.         local pp, ee = shell.execute("pastebin get -f HNdSi9aG /usr/bin/ircChatbox.lua")
  11.         if pp then
  12.         else
  13.             print("Failed to update")
  14.             error(ee)
  15.         end
  16.       else
  17.         print("ERRRRRROORRRRR")
  18.         os.sleep(5)
  19.         error(e)
  20.       end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement