a
This commit is contained in:
parent
5e504e42ac
commit
17f3346718
@ -88,7 +88,7 @@ function receiveMessage()
|
||||
return "event: file transfer received"
|
||||
elseif what == "log" then
|
||||
basic.appendToFileNl(payload[0], payload[1])
|
||||
return "event: log received"
|
||||
return payload[1]
|
||||
elseif what == "execute_script" then
|
||||
shell.run(payload)
|
||||
return
|
||||
|
9
src/brulijam/log-receiver.lua
Normal file
9
src/brulijam/log-receiver.lua
Normal file
@ -0,0 +1,9 @@
|
||||
basic = require("lib.basic")
|
||||
netw = require("lib.networking")
|
||||
|
||||
function listenForLogs()
|
||||
while true do
|
||||
response = netw.receiveMessage()
|
||||
print("log: " .. response)
|
||||
end
|
||||
end
|
@ -3,13 +3,19 @@ local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/
|
||||
local copyList = {
|
||||
[0] = "/brulijam/sync.lua",
|
||||
[1] = "/startup.lua",
|
||||
|
||||
[2] = "/brulijam/lib/aes.lua",
|
||||
[3] = "/brulijam/lib/hash.lua",
|
||||
[4] = "/brulijam/lib/basic.lua",
|
||||
[5] = "/brulijam/turtle-roomCreator.lua",
|
||||
[6] = "/brulijam/turtle-miner-stupidExcavate.lua",
|
||||
[7] = "/brulijam/turtle-miner-fibo.lua",
|
||||
[8] = "/brulijam/turtle-treeFarmer.lua",
|
||||
[5] = "/brulijam/lib/networking.lua",
|
||||
|
||||
[6] = "/brulijam/turtle-roomCreator.lua",
|
||||
[7] = "/brulijam/turtle-miner-stupidExcavate.lua",
|
||||
[8] = "/brulijam/turtle-miner-fibo.lua",
|
||||
[9] = "/brulijam/turtle-treeFarmer.lua",
|
||||
|
||||
[10] = "/brulijam/gps-tower.lua"
|
||||
[11] = "/brulijam/log-receiver.lua"
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user