How do I deal with loneliness because everyone abandoned me at my lowest?

My father passed away, none of my so called friends tried to be there for me. I don't think I can trust anyone anymore but I desperately need someone. Again I am too ugly or boring to have any chance for a girl friend. How do I deal with this situation?