Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i,message,id,freq,side
- local function startup()
- term.clear()
- term.setCursorPos(1,1)
- print("Running JyNet Repeater")
- os.loadAPI("JyNet")
- JyNet.openAll()
- JyNet.addAll()
- end
- startup()
- while true do
- message,id,freq,side = JyNet.recieve()
- for i = 1,6 do
- if rs.getSides()[i] ~= side then
- JyNet.send(message,freq,rs.getSides()[i],id)
- end
- end
- sleep(.01)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement