Stop drinking and any recreational drugs immediately.
You need to be having fun doing your startup or you won't be able to succeed and should do something else. So if you're spending most of your time writing code, try to make it fun again. If you can't then I recommend the following:
Go and get a physical job for a few months, preferably somewhere rural. It will remind you what real hard work is like, get you physically fit and give you the satisfaction of having achieved something tangible at the end of your day. Come back when you're ready.
You need to be having fun doing your startup or you won't be able to succeed and should do something else. So if you're spending most of your time writing code, try to make it fun again. If you can't then I recommend the following:
Go and get a physical job for a few months, preferably somewhere rural. It will remind you what real hard work is like, get you physically fit and give you the satisfaction of having achieved something tangible at the end of your day. Come back when you're ready.