SHOW:
|
|
- or go back to the newest paste.
1 | - | local modem = peripheral.wrap("right") |
1 | + | local modem = peripheral.wrap("left") |
2 | modem.open(101) | |
3 | print("Channel 101 is open") | |
4 | ||
5 | while true do | |
6 | - | local a,b,c,d,e,f = os.pullEvent("modem_message") |
6 | + | print("Shell$: ") |
7 | - | print("Message received: " .. tostring(e)) |
7 | + | local message = read() |
8 | - | shell.run(tostring(message)) |
8 | + | modem.transmit(101, 102, message) |
9 | end | |
10 |