Advertisement
buttercheetah

Don ordering

Aug 5th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local component = require("component")
  2. local event = require("event")
  3. local inet = require("internet")
  4. while (1 == 1) do
  5. os.execute("cls")
  6. print("---------------------------------")
  7. print(" The Don ")
  8. print("---------------------------------")
  9. print(" __n__n__\n .------`-\00/-'\n / ## ## (oo)\n / ## __ ./\n |//YY |/\n ||| |||")
  10. print("Please input your name! dont lie... the don dont play")
  11. local tname = io.read()
  12. print("Please input the item wanted! ex: apple")
  13. local titem = io.read()
  14. print("please input the quantity wanted! ex: 10 stacks or 5 items")
  15. local tquantity = io.read()
  16. print("please input delivery location! ex: My base or x=123 z=456")
  17. local tloc = io.read()
  18. print("Getting ready to order " .. tquantity .. " of " .. titem .. " at " .. tloc)
  19. print("please note you CANNOT cancel this order. would you like to continue?\nY/n")
  20. local confirmitation = io.read()
  21. if (confirmitation == "n") then
  22. print("Canceling order")
  23. else
  24. local response = inet.request("http://secondary.infinity-servers.com:9000/webhook/mcorder", tostring(tname .. " ordered " .. tquantity .. " of " .. titem .. " at " .. tloc))
  25. local body = ""
  26. for chunk in response do
  27. body = body .. chunk
  28. end
  29. print("Sent Order")
  30. end
  31. os.sleep(5)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement