Advertisement
genveir

Untitled

Sep 22nd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local baseUri = "http://84.104.212.172:4800/api/bot/"
  2.  
  3. local result = http.get(baseUri .. "GApiUpdate")
  4. if (responseCode == 200) then
  5. local parsedResult = result.readAll()
  6. local handle = fs.open("GApi", "w")
  7. handle.write(parsedResult)
  8. handle.close()
  9. print("GApi Updated")
  10. else
  11. print("Error updating GApi")
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement