How do I stop feeling suicidal?

Does anybody have any tips on what I can do to help with my suicidal thoughts and feelings? It happens pretty much every time I am alone but I can’t have somebody with me constantly to feel better... I know going to a doctor is the best thing to do, but it’s hard to get an appointment, so I need help until I can see a doctor 😢