Advertisement
infiniteblock

Untitled

Apr 25th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. nuggets = "back"
  2. ingots = "left"
  3. blocks = "right"
  4. discordUri = "http://147.135.59.131/webhook.php"
  5. --while true do
  6.  
  7. local url = "http://147.135.59.131/usercode"
  8. local url1 = "http://147.135.59.131/index.php"
  9. while true do
  10. UserCode = http.get(url)
  11. response = UserCode.readAll()
  12. if rs.getInput("back") then
  13. http.post(url1, "command="..textutils.urlEncode(tostring("authcurrency")).."&".."final="..textutils.urlEncode(tostring("nugget")).."&".."final2="..textutils.urlEncode(tostring(response)).."&".."username="..textutils.urlEncode(tostring(response)))
  14. amount = request.readAll()
  15. print(response.." Deposited " ..amount.." Galleons In Nugget Form.")
  16. http.post(discordUri, "username="..textutils.urlEncode(tostring(response)).."&".."type="..textutils.urlEncode(tostring(amount)))
  17. elseif rs.getInput("left") then
  18. http.post(url1, "command="..textutils.urlEncode(tostring("authcurrency")).."&".."final="..textutils.urlEncode(tostring("ingot")).."&".."final2="..textutils.urlEncode(tostring(response)).."&".."username="..textutils.urlEncode(tostring(response)))
  19. amount = request.readAll()
  20. print(response.." Deposited " ..amount.." Galleons In Ingots Form.")
  21. http.post(discordUri, "username="..textutils.urlEncode(tostring(response)).."&".."type="..textutils.urlEncode(tostring(amount)))
  22. elseif rs.getInput("right") then
  23. http.post(url1, "command="..textutils.urlEncode(tostring("authcurrency")).."&".."final="..textutils.urlEncode(tostring("block")).."&".."final2="..textutils.urlEncode(tostring(response)).."&".."username="..textutils.urlEncode(tostring(response)))
  24. amount = request.readAll()
  25. print(response.." Deposited " ..amount.." Galleons In Block Form.")
  26. http.post(discordUri, "username="..textutils.urlEncode(tostring(response)).."&".."type="..textutils.urlEncode(tostring(amount)))
  27. end
  28.  
  29. sleep(0)
  30. os.pullEvent("redstone")
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement