Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- while true do
- print("Type Message")
- input = io.read()
- end
- --Functions
- function parse(input)
- out = {}
- sep = "%s"
- for str in string.gmatch(input, "([^"..sep.."]+)") do
- table.insert(out, str)
- end
- for addr, row in ipairs(addresses) do
- if out[2] == row.dest then
- dest = row.address
- end
- end
- msg = out[3]
- end
- function help()
- end
- function print(from,text)
- time =
- print("[" .. from .. "]" .. "[" .. time .. "]" .. """ .. text .. """)
- end
- function send(output)
- component.modem.send("25630b44-6b43-46e5-abcb-7a84b0aea85c",7727,output)
- print("Sent Message: " .. output)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement