My period hurts :((

It’s nearly 3am and I have been in pain sicnr 1:40am :/ what should I do? I might consider going to the doctors but it’s really late where I live... the pain is so unbearable and I couldn’t move