Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local event = require("event")
- local inet = require("internet")
- while (1 == 1) do
- os.execute("cls")
- print("---------------------------------")
- print(" The Don ")
- print("---------------------------------")
- print(" __n__n__\n .------`-\00/-'\n / ## ## (oo)\n / ## __ ./\n |//YY |/\n ||| |||")
- print("Please input your name! dont lie... the don dont play")
- local tname = io.read()
- print("Please input the item wanted! ex: apple")
- local titem = io.read()
- print("please input the quantity wanted! ex: 10 stacks or 5 items")
- local tquantity = io.read()
- print("please input delivery location! ex: My base or x=123 z=456")
- local tloc = io.read()
- print("Getting ready to order " .. tquantity .. " of " .. titem .. " at " .. tloc)
- print("please note you CANNOT cancel this order. would you like to continue?\nY/n")
- local confirmitation = io.read()
- if (confirmitation == "n") then
- print("Canceling order")
- else
- local response = inet.request("http://secondary.infinity-servers.com:9000/webhook/mcorder", tostring(tname .. " ordered " .. tquantity .. " of " .. titem .. " at " .. tloc))
- local body = ""
- for chunk in response do
- body = body .. chunk
- end
- print("Sent Order")
- end
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement