Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("front")
- dial = peripheral.wrap("back")
- while true do
- e, a, b, c, d, f = os.pullEvent("modem_message")
- msg = d
- if msg == "terminate" then
- dial.terminate()
- else
- dial.dial(msg)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement