Is AUTHOR wrong in the post ? POST : Sorry for format (mobile) and sorry for length 

I (20m) and my friend (23m) have been friends for 5 years or so now. Last year he was diagnosed with depression and had a short stay in a medical facility. I was also diagnosed with depression around 2 years ago so I was really the only supporting character in our friend group. I've had long talks about life/his view on himself and told him he can contact me no matter what time it is, helped him be more social for his dating life (or rather attempted to) made sure he was on medication and seeing a professional, and even would play a game with him if he was just feeling bad so that he could get his mind off things. If I don't hear from him for a few days I check up and I've done all this since he was diagnosed.

Recently he's taken to a morbid view that the world is trash and everyone in it is also trash. I've tried talking with him about this but he kinda rejects any other opinion without discussion. Since then he's been very insulting and rude to everyone in our friend group and when we try to talk to him seriously he just blames it on his hormones or emotional state without even apologizing 

It's been 3 months now since he started this and I'm struggling to be patient. He asked me to play a game with him and a friend and I said no so he called me trash. To this I sternly replied that he was a hypocrite because the day before he rejected my offer.

He blamed me for messing him up on a video game because I was talking so I told him nothing could make him do worse than he already was (probably a lil too harsh)

Last night I asked him to help me stay awake for 1 hour because I needed to stay awake to take my medicine otherwise I deal with very serious side effects and he said he wouldn't mess up his sleep schedule for me so I told him (half jokingly) that he's a bad friend and then I asked someone else and they helped 

I feel like I've been patient and a good friend but me and my other friends are a little tired of consistently being insulted throughout the day and I personally feel under appreciated. I get having mood swings or anger but taking it out on people who care about you every day for 3 months imo is NOT okay.  Whenever we snap he goes quiet. AITA? 