Irritable bowel syndrome

I think I have Irritable Bowel Syndrome. My bowel movements have changed. I used to go weeks to a month or two with out pooping but the past 3 months I have diarrhea once a week and that is the only time I use the bathroom. So is there anything I can take to help? I hate that I diarrhea once a week and it’s always during the night.