You had your anti-diarrheals, eventually diarrhea will stop.
For the dehydration
you suffered you need to take plenty of fluids, with a pinch of salt, sugar, citric fruits if possible.
Dont starve yourself. Have regular meals.
For stomach cramps
, you may need anti-spasmodics like dicyclomine
If your diarrhea is associated with fever you may need to have some antibiotics.