implement has_received_message
add some more tests and process bot messages