Learn what soothes you, and makes you feel all good inside. When your pain is trying to bring you down, focus on those things and keep yourself above the pain.
It's not selfish to attend to your needs. It is one of the most loving things you can do for yourself.