Praying. Change is hard. Having someone to hold you accountable can be a big help. Alcoholics Anonymous gets recommended a lot, although I haven't experienced it. My personal recommendation is therapy. Understanding how you got to this point in your life, what underlying causes may be contributing, and how to really begin working on addiction may be a good place to start.
I don't have much more than this to offer. But people can and do learn to manage addiction. You can do this. It will be hard, but I bet you've done plenty of hard things before. Don't let that discourage you. At the very least, commit to doing SOMETHING to help yourself and see it through. One AA meeting. Call one therapist or clinic. Call your doctor. Even a baby step can lead you in an improved direction. Then look for another attainable win until you find the right support to guide you through bigger steps.