Jeyjey0

Computercraft get Pastebins without messages (api)

Apr 13th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function invisiblepastebin(code,name)
  2. local response = http.get(
  3. "http://pastebin.com/raw/"..code
  4. )
  5.  
  6. if response then
  7.  
  8. local sResponse = response.readAll()
  9. response.close()
  10. h = fs.open(name,"w")
  11. h.write(sResponse)
  12. h.close()
  13. return sResponse
  14. else
  15. print( "Failed." )
  16. end
  17. end
Add Comment
Please, Sign In to add comment