I keep getting diarrhea! 😩

Every time my friend comes over, my stomach starts hurting and I get diarrhea. It used to not happen. I don't know if it's because I'm on my period, or what really. I know I'm a little nervous. I don't know why. Any help, advice!? I'm desperate!