Advertisement
Ranger15

plethora sensor

Jun 11th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local x = peripheral.find("neuralInterface")
  2. x.capture("^%$") -- Capture lines starting with "$"
  3. while true do
  4.   local event, message, pattern = os.pullEvent("chat_capture")
  5.   if pattern == "^%$" then
  6.     print("Got " .. event)
  7.   end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement