Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a=http.get"https://pastebin.com/raw/3gkayV9B"local b=fs.open("bundlemodem","w")b.write(a.readAll())a.close()b.close()
- local bnet = require "/bundlemodem"
- bnet("open", 3636)
- write "Username: "
- local u = read()
- print "Press enter to wait for a message. To send a message, type it and then press enter."
- while true do
- write "> "
- local input = read()
- if input == "" then
- local msg = bnet "listen".message
- if type(msg) == "table" and type(msg.username) == "string" and type(msg.message) == "string" then
- print(msg.username .. ": " .. msg.message)
- end
- else
- bnet("transmit", 3636, 3636, { username = u, message = input })
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement