First, give your friend $100. If you get the task done by 5 PM, you get your $100 back. If it doesn’t, you lose the $100.
Or make it $200 that the friend doesn’t keep — they donate it to some weird organizations, in your name.
Get the picture? That’s a commitment device.