i can see why your mentality was destroyed after being told to end your own life
anyways either stop being friends with that person or if you feel nice give him one more chance
or just go try to sleep if you can maybe tomorrow will be a better day.
you could tell a teacher about it if it happened at school but idk if they would believe you or do anything about it.