The best way to stay motivated is to set achievable goals and deadlines for those goals.
Today for example, my goal is to make a new post each day. It is an achievable goal and it also has a hard deadline. I hate to fail, so here I am. Without those goals, I doubt I would have managed to get much of anything done today. But, that’s what Sundays are for.