Advertisement
Guest User

startup

a guest
Apr 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. -- bts'y
  2. bts = 300
  3. adres = bts
  4. rednet.open("back")
  5. while true do
  6. event, id, txt, dis = os.pullEvent()
  7. if event == "rednet_message" then
  8. if txt:find("google.mc") then
  9. s = txt:find("google.mc")
  10. inf = txt:sub(s)
  11. ipf = txt:sub(1, s-1)
  12. print("inf")
  13. print(inf)
  14. print(adres)
  15. rednet.send(adres, ipf.. "test" )
  16. rednet.send(adres, ipf.. "")
  17. rednet.send(adres, ipf.. "--------------------------------------------------" )
  18. rednet.send(adres, ipf.. "Polecane strony:" )
  19. rednet.send(adres, ipf.. "administracja.mc" )
  20. rednet.send(adres, ipf.. "domeny.mc" )
  21. rednet.send(adres, ipf.. "chat.mc (Uwaga: wymaga dodatkowej instalacji!)" )
  22. rednet.send(adres, ipf.. "poradniki.mc" )
  23. rednet.send(adres, ipf.. "" )
  24. rednet.send(adres, ipf.. "" )
  25. rednet.send(adres, ipf.. "" )
  26. rednet.send(adres, ipf.. "" )
  27. rednet.send(adres, ipf.. "" )
  28. rednet.send(adres, ipf.. "" )
  29. end
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement