local component = require("component") local event = require("event") local t = component.tunnel local instr = "help - вывести все команды\nexit - выйти" local f = io.open("help.txt", "r") local help = f:read("*all") f:close() print(instr) while true do io.write("msg: ") _, message = pcall(io.read) if message == "exit" then break elseif message == "help" then print(help) end t.send(message) end