Guest User

startup

a guest
Nov 4th, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local modem = peripheral.wrap("top")
  2. -- Aspetto la richiesta
  3. while true do
  4. modem.setListening(51, true)
  5. local event, lato, sender, canale, msg = os.pullEvent("lan_message")
  6.  
  7. print("Richiesta da: 144.91.97."..sender.."\nContenuto: "..msg)
  8. if msg == "1.x&o.g.gaugle.com" then
  9. modem.sendChannel(51, "OK")
  10. elseif string.find(msg, "1.x&o.g.gaugle.com/new") ~= nil then
  11. local h = fs.open("turn", "w")
  12. h.write("u='"..
  13. end
  14. sleep(0.1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment