Please help

I just found out i was pregnant, and im having diarrhea what can i do to make it calm down it not bad, but im just wondering if there is anything i can do to control it