Motivation follows action.
You don't need to feel good to get going. You need to get going to give yourself a shot at feeling good.
This is called "behavioral activation."
Sometimes you need more activation energy, sometimes less.
The key is to start—give yourself a chance.