LuaScripts/linkedSend.lua

13 lines
254 B
Lua
Raw Normal View History

2021-01-07 23:32:44 +00:00
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