Yorbo

ChatNet2.0

Oct 21st, 2021
962
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. --- Created by yannb.
  3. --- DateTime: 22/10/2021 02:36
  4. ---
  5.  
  6. local manip = peripheral.wrap("top")
  7. manip.getDocs()
  8. manip.listModules()
  9. if manip.hasModule("plethora:sensor") == true then
  10.     print("Setup Correctly")
  11. end
  12.  
  13. rednet.open("right")
  14.  
  15. while true do
  16.     local _, player, message, uuid = os.pullEvent("chat_message")
  17.     rednet.send(2, message)
  18. end
  19. rednet.close()
RAW Paste Data