Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- --- Created by yannb.
- --- DateTime: 22/10/2021 02:36
- ---
- local chat = peripheral.wrap("back")
- while true do
- local _, player, message, uuid = os.pullEvent("chat_message")
- -- We exclude messages starting with "Hello to you too" so we don't
- -- reply to ourselves
- if message:find("[Hh]ello") and not message:find("^Hello to you too") then
- chat.say("Hello to you too " .. player)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement