Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- VARIABLES --
- ID = 13
- port = "234265324534515762343289734906098437986128473623895734569823426324534512343289734906509843798612847362389573459823425676324534512343289734906098437986128473623895675734598"
- SRVID = 14
- modemSide = "back"
- -- UTILITY FUNCTIONS --
- local function printF(msg)
- term.setTextColor(colors.yellow)
- print(msg)
- term.setTextColor(colors.white)
- end
- -- MAIN --
- term.setTextColor(colors.red)
- print("Welcome to BeenisBank! Enter commands below.")
- term.setTextColor(colors.white)
- while true do
- send = tostring(read())
- rednet.open(modemSide)
- rednet.send(SRVID,send,port)
- local id,msg,dist=rednet.receive(port)
- printF(msg)
- rednet.close()
- end
Add Comment
Please, Sign In to add comment