FoxWorn3365

Gaugle! - Server side DEFAULT

Oct 28th, 2021 (edited)
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local modem = peripheral.wrap("top")
  2. -- Aspetto la richiesta
  3. while true do
  4. modem.setListening(81, 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 == "lol.net" then
  9. modem.sendChannel(80, "sus")
  10. end
  11. sleep(0.1)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment