What do I do when I realize everything good I did was really just so people would notice me?
Even the hunger to be seen was something Hashem used to bring real good into the world.
Rabbi Landau doesn't tell you the motive wasn't there. He spoke with a man over 70 who said, looking back, "My whole life was about seeking attention." He didn't argue with him. He accepted it, and then pointed to something else: "And thanks to your attention-seeking nature, look how many people you helped and what you built."
The people you helped really were helped. What you built really stands. A flawed reason doesn't reach back and undo the good that came from it. As he said to that man: "So perhaps Hashem uses even those false motives to bring you to where you are today."
So the honest look at yourself doesn't have to end in shame. You can see the hunger for what it was and still see a larger hand at work through it, using even that to bring you here, to the place where you can finally see it.
“So perhaps Hashem uses even those false motives to bring you to where you are today.”