Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- term.clear()
- term.setCursorPos(1,1)
- print("RedBC")
- term.setCursorPos(1,3)
- print("Channels Avaliable")
- print()
- local id, message = rednet.receive()
- print(message)
- print()
- print()
- write("Host Name: ")
- host = read()
- rednet.send(id,"response:"..host)
- local id2, msg = rednet.receive()
- if id2 == id then
- f = fs.open("/,temp","w")
- f.write(msg)
- f.close()
- term.clear()
- term.setCursorPos(1,1)
- print("RedBC")
- term.setCursorPos(1,3)
- print("Watching Channel :"..host)
- term.setTextColor(colors.black)
- shell.run("monitor right /.temp")
- fs.delete("/.temp")
- print()
- print("Thank you for using RedBC.")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement