Advice ?

My best friend I have known for years also (my crush) has told me that she is going out with my other best friend as I was just about to tell her I liked her . I have been feeling really down and as if I’m not good enough for anyone . However there isn’t many decent girls in my school and I always liked her because she would cheer me up and would never fail to make me laugh. I’m really heartbroken and for something like this I would go to her about it but now I feel like i have nobody . I was hoping I could get any advice ?