How does epilepsy affect your mental health?

I am curious, how does epilepsy affect your mental health? And what helps with improving it?