Yorbo

Just a quick test

Oct 21st, 2021
826
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 chat = peripheral.wrap("back")
  7.  
  8. while true do
  9.     local _, player, message, uuid = os.pullEvent("chat_message")
  10.  
  11.     -- We exclude messages starting with "Hello to you too" so we don't
  12.     -- reply to ourselves
  13.     if message:find("[Hh]ello") and not message:find("^Hello to you too") then
  14.         chat.say("Hello to you too " .. player)
  15.     end
  16. end
RAW Paste Data