Advertisement
PSquishyP

Untitled

Jun 23rd, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local sen = peripheral.wrap("top")
  2. local bridge = peripheral.wrap("right")
  3. local ae = peripheral.wrap("left")
  4.  
  5. while true do
  6.    
  7.     e, side, player, uuid, msg_raw = os.pullEvent("glasses_chat_command")
  8.  
  9.     msg = string.lower(msg_raw)
  10.    
  11.     if msg == "me" then
  12.         file = fs.open("basesense_data", "w")
  13.         file.write("me")
  14.         file.close
  15.     elseif msg == "power" then
  16.         file = fs.open("basesense_data", "w")
  17.         file.write("power")
  18.         file.close
  19.     else
  20.         file = fs.open("basesense_data", "w")
  21.         file.write("help")
  22.         file.close
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement