Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = peripheral.find("neuralInterface")
- x.capture("^%$") -- Capture lines starting with "$"
- while true do
- local event, message, pattern = os.pullEvent("chat_capture")
- if pattern == "^%$" then
- print("Got " .. event)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement