Advertisement
Yorbo

Just a quick test

Oct 21st, 2021
987
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement