Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sen = peripheral.wrap("top")
- local bridge = peripheral.wrap("right")
- local ae = peripheral.wrap("left")
- while true do
- e, side, player, uuid, msg_raw = os.pullEvent("glasses_chat_command")
- msg = string.lower(msg_raw)
- if msg == "me" then
- file = fs.open("basesense_data", "w")
- file.write("me")
- file.close
- elseif msg == "power" then
- file = fs.open("basesense_data", "w")
- file.write("power")
- file.close
- else
- file = fs.open("basesense_data", "w")
- file.write("help")
- file.close
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement