Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right") -- Modem side ayy lmfao
- modem.open(1337)
- while true do -- loop dis shit nig'
- input = read()
- if input == "" then
- print("Please enter a chat message in order to broadcast it..")
- else
- print("You broadcasted: " .. input)
- modem.transmit(1337, 1337, input)
- end
- local e, mS, sC, rC, msg, sD = os.pullEvent("modem_message")
- term.setCursorPos(1, 1)
- print("<Stranger>: " .. msg .. " [" .. sD .. " blocks away]")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement