a
This commit is contained in:
parent
5e504e42ac
commit
17f3346718
@ -88,7 +88,7 @@ function receiveMessage()
|
|||||||
return "event: file transfer received"
|
return "event: file transfer received"
|
||||||
elseif what == "log" then
|
elseif what == "log" then
|
||||||
basic.appendToFileNl(payload[0], payload[1])
|
basic.appendToFileNl(payload[0], payload[1])
|
||||||
return "event: log received"
|
return payload[1]
|
||||||
elseif what == "execute_script" then
|
elseif what == "execute_script" then
|
||||||
shell.run(payload)
|
shell.run(payload)
|
||||||
return
|
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 = {
|
local copyList = {
|
||||||
[0] = "/brulijam/sync.lua",
|
[0] = "/brulijam/sync.lua",
|
||||||
[1] = "/startup.lua",
|
[1] = "/startup.lua",
|
||||||
|
|
||||||
[2] = "/brulijam/lib/aes.lua",
|
[2] = "/brulijam/lib/aes.lua",
|
||||||
[3] = "/brulijam/lib/hash.lua",
|
[3] = "/brulijam/lib/hash.lua",
|
||||||
[4] = "/brulijam/lib/basic.lua",
|
[4] = "/brulijam/lib/basic.lua",
|
||||||
[5] = "/brulijam/turtle-roomCreator.lua",
|
[5] = "/brulijam/lib/networking.lua",
|
||||||
[6] = "/brulijam/turtle-miner-stupidExcavate.lua",
|
|
||||||
[7] = "/brulijam/turtle-miner-fibo.lua",
|
[6] = "/brulijam/turtle-roomCreator.lua",
|
||||||
[8] = "/brulijam/turtle-treeFarmer.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