LuaScripts/linkedSend.lua
2021-01-08 17:49:20 +03:00

12 lines
254 B
Lua

local component = require("component")
local event = require("event")
local t = component.tunnel
print("exit - выйти")
while true do
io.write("msg: ")
_, message = pcall(io.read)
if message == "exit" then
break
end
t.send(message)
end