def METHOD_NAME(bot, rc_data, pipe_data):
    """
    Return only the bots which are directly connected
    If a bot has more than one inputs or outputs stop processing
    """
    cbs = []
    sqs2bot, dsq_count = convert_pipedata(pipe_data)
    cbot = bot
    while True:
        dst_qs = pipe_data[cbot].get('destination-queues', [])
        if len(dst_qs) == 1:
            dst_q = dst_qs[0]
            _bot = sqs2bot[dst_q]
            cbot = _bot[0]
            count = dsq_count[dst_q]
            if count > 1:
                break
            else:
                cbs.append(cbot)
        else:
            break
    return cbs