Set your feet to the gym even when you don’t want to.
Write even when you don’t have the mood to.
Study even when you don’t feel like doing.
Because the alternative is that you will lie down on a sofa reading Internet meme, you will watch random videos, or you will play video games.
When you are determined to consistently carry out your plan, the actions become a habit that is hard to break.