Advertisement
Yorbo

ChatNet3.0

Oct 21st, 2021
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  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:chat") == true then
  10. print("Setup Correctly")
  11. end
  12.  
  13. while true do
  14. local _, player, message, uuid = os.pullEvent("chat_message")
  15. if message:find("[Hh]ello") then
  16. print(player .. "said hello!")
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement