Replace the carrot and stick with chocolate

What do you do to ‘motivate’ yourself into doing something that would be good for you in the long-term but is difficult and not necessarily enjoyable in the short-term?  Do you keep yourself focused on today and pat yourself on the back when you  succeed?  Do you beat yourself up daily/hourly when you fail to…