Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("top")
- -- Aspetto la richiesta
- while true do
- modem.setListening(51, true)
- local event, lato, sender, canale, msg = os.pullEvent("lan_message")
- print("Richiesta da: 144.91.97."..sender.."\nContenuto: "..msg)
- if msg == "1.x&o.g.gaugle.com" then
- modem.sendChannel(51, "OK")
- elseif string.find(msg, "1.x&o.g.gaugle.com/new") ~= nil then
- local h = fs.open("turn", "w")
- h.write("u='"..
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment