Communication between the GB and the Pogamut Java client can be described by a finite state machine.
State diagram of communication between bot and the GB
State diagram of communication between server and the GB