Hi,
I am a recovering addict of pain meds, ( opiates are my drug of choice) and I have 6 years of sobriety. It is hard, and you have some good advice. I echo the advice of getting medical help to detox. It can be hard to do it alone and frequently relapses occur.
Keep posting and know you are in many thoughts and prayers.