Advertisement
ecco7777

Tiffany

Jan 13th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. chat1=1
  2. chat2=1
  3.  
  4. function recieve()
  5. bol=1
  6. while bol do
  7. chat1=http.get("http://www.gecco34.bplaced.net/Gamer34/FTP")
  8. chat1=chat1.readAll()
  9. if chat1~=chat2 then
  10. print(chat1)
  11. stuff()
  12. http.post("http://www.gecco34.bplaced.net/Gamer34/delete.php")
  13. chat2=chat1
  14. bol=0
  15. end
  16. end
  17. end
  18.  
  19. function stuff()
  20. message=chat1
  21. if string.find(message,"Schalte das Licht an") then --"Befehl"
  22. --auszufuehrender Code
  23. redstone.setOutput("right",true)
  24. sleep(5)
  25. redstone.setOutput("right",false)
  26. end
  27. end
  28.  
  29. recieve()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement