Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("back")
- local cid = 2
- modem.open( cid )
- write("Username: ")
- user = read()
- write("Password: ")
- pass = read('*')
- modem.transmit(1, cid, "login,"..user..","..pass)
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- if(senderChannel == 1) then
- local token = message
- end
- write(token)
Advertisement
Add Comment
Please, Sign In to add comment