It has been reported that Michael Crichton, the famous author of works like Jurassic Park, advised:
“Working inspires inspiration. Keep working. If you succeed, keep working. If you fail, keep working. If you are interested, keep working. If you are bored, keep working.”
And I would add that being bored can lead to being depressed, but like Crichton (indirectly) advised, a key to avoiding depression is to work slash write.
It may be counterintuitive, but if you don't feel like writing, force yourself to write, because creating will often propel one out of boredom and depression into inspiration.