Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Opening the channel on this end as its in the main world
- modem = peripheral.wrap("back")
- modem.open(6)
- --Waiting for the reply loop
- local event, side, channel, replyChannel, message, distance
- repeat
- event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- until channel == 6
- print("Said:" .. tostring(message))
- --need a "if reply = 'fuck' then setOutput("top", on)' code (if thats not it lol)
Add Comment
Please, Sign In to add comment