mailmanq

Computercraft: Run Pastebin Programs

Mar 5th, 2013
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local tArgs = { ... }
  2. if not #tArgs < 1 and type(tArgs[1]) == "string" then
  3.     local pastebinCode = tArgs[1]
  4.     local code = loadstring(http.get("http://www.pastebin.com/raw.php?i="..pastebinCode).readAll())
  5.     code()
  6. else
  7.     print("Usage: "..shell.getRunningProgram().."pastebin ID")
  8. end
Advertisement
Add Comment
Please, Sign In to add comment