From b4df3e4eacf2713739562d41524673bdf0d226fb Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:59:19 +0300 Subject: [PATCH] Update linkedSend.lua --- linkedSend.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/linkedSend.lua b/linkedSend.lua index 55badb5..7783c39 100644 --- a/linkedSend.lua +++ b/linkedSend.lua @@ -1,12 +1,21 @@ local component = require("component") local event = require("event") local t = component.tunnel -print("exit - выйти") + +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