Medication safe?

Which medication is safe to take for diarrhea? I had a stomach bug and now I have watery diarrhea but I just want it to stop 😭. TMI sorry!!