Advertisement
FoxWorn3365

Hiro Sexy

Feb 10th, 2022 (edited)
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. term.setBackgroundColor(colors.black)
  2. term.setTextColor(colors.white)
  3. term.clear()
  4.  
  5. while true do
  6. term.setBackgroundColor(colors.orange)
  7. term.setTextColor(colors.black)
  8. term.setCursorPos(1, 1)
  9. print("Chat hot online con Hiro")
  10. term.setBackgroundColor(colors.black)
  11. term.setTextColor(colors.white)
  12.  
  13. term.setCursorPos(1, 17)
  14. print("<Tu> ")
  15. term.setCursorPos(6, 17)
  16. rold = read()
  17. if rold == "quit" or rold == "exit" then
  18. shell.run("startup")
  19. end
  20. rq = string.gsub(rold, "%s", "%%20")
  21. if rq ~= nil and rq ~= "" then
  22. id = os.getComputerID()
  23. rsp = http.get("http://172.16.20.220/luanet/servlets/foxbot/?ask=" .. rq .. "&id=" .. id)
  24. response = rsp.readAll()
  25. rsp.close()
  26. if response == nil then
  27. response = "(La richiesta non e' arrivata al server!)"
  28. end
  29. else
  30. response = "<ErrorHandler> Richiesta vuota!"
  31. end
  32.  
  33. print("<Hiro> " .. response)
  34. print("")
  35. print("")
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement