Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chat1=1
- chat2=1
- function recieve()
- bol=1
- while bol do
- chat1=http.get("http://www.gecco34.bplaced.net/Gamer34/FTP")
- chat1=chat1.readAll()
- if chat1~=chat2 then
- print(chat1)
- stuff()
- http.post("http://www.gecco34.bplaced.net/Gamer34/delete.php")
- chat2=chat1
- bol=0
- end
- end
- end
- function stuff()
- message=chat1
- if string.find(message,"Schalte das Licht an") then --"Befehl"
- --auszufuehrender Code
- redstone.setOutput("right",true)
- sleep(5)
- redstone.setOutput("right",false)
- end
- end
- recieve()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement