Can’t stop pooping,TMI

I have IBS i don’t know my triggers and i have had it my whole life . Does anyone else have it how do you deal with it ? I have codeine for pain but that only helps the pains. I’m so sick of waking up dying !