Missing him

My ex cheated on me Monday. I’m having a really hard time and I miss him so much it hurts. I want to text him so badly but I know it wouldn’t be good. Everyone tells me not to but I miss him so much where it hurts. I miss seeing his good morning texts and us just talking about random things. I need help. What should I do.