I've done something bad to a friend out of frustration, depression, and anger.
Why have you done something bad to your friend?
It's been ages since I've last done that. It just happened to me, didn't have any reason behind it.
Maybe you should keep your emotions in check. It's wrong to treat your friend poorly. They may decide not to be your friend any longer
This is not because of my emotional issues.
Well, you've admitted to hurting your friend out of depression and anger.  In this case, I think you'd be better off seeking some mental health therapy.