Should I just tell someone that I don't want to hear about their rape.
Why wouldn't you want to let them tell you about their rape?
Because I'm tired and it brings back painful memories to me
While it can be uncomfortable to hear about someone's trauma, it is important to be able to give that person emotional support. If hearing about the trauma is upsetting to you, you should explain how you would like to support them but the talk is triggering painful memories of your own. You can still show support to that person by directing them to resources that they can talk to, like a mental health therapist, that can better help them resolve their trauma since you aren't a professional.
You're not listening to me. I don't have the energy to go through this again.
People that have gone through something like rape really do need our support even if we don't think we have the energy to help them. It wouldn't take a lot of energy to help them look up a therapist that could help. Wouldn't you feel better knowing your friend is getting the help they need?