This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
houseofkraft's profile picture

How does the chat program work?

Started by houseofkraft, 26 December 2016 - 12:14 PM
houseofkraft #1
Posted 26 December 2016 - 01:14 PM
Hello!

I am currently attempting to make an API that allows you to have chat bots in the default chat program. This would be useful because me and some people are making a hotel-like thing and having a tech support bot that can answer FAQ questions would be great!

However, I would have to know how the host and client communicates to each other. I tried looking at the code myself and it looked a little confusing :P/>

It would be nice if someone told me how the host and client communicates with each other.

Thanks!
Lupus590 #2
Posted 26 December 2016 - 02:18 PM
creating a flow chart of functions may help, see what functions get called during different stages of the program

tracking the modem messages between may help too, get a modem listener set up and then run the chat program as normal
Edited on 26 December 2016 - 01:24 PM