This is the inital adding of code that I have already worked out. Inbound reads out messages to a log file. I also made it work with emoji's