I don't see a point of living anymore
Why do you feel life is pointless?
I'm simply annoyed by some people and I'm also quite lonely
People can be annoying and it does feel bad to be alone but it is not good to not want to live anymore. It would be better to find things that you will enjoy so that you can be happy.
So I should ditch the people that are irritating me and I should get a pet?
A pet is not a bad idea if you can care for one. Pets often bring comfort and enjoyment to people.