What should i do to overcome anxiety and social anxiety due to eplipesy?

I used to have terrible anxiety. What I done was thought happy thoughts and stayed out in the sun alot. I don't know how, but being outside really helps get rid of anxiety.