I'm very sorry to hear that you are struggling.
It sounds like you have taken some positive steps by texting crisis and coming up with a safety plan. It is good that you are aware of how you feel and taking constructive actions to deal with it. Hang in there, it does get better!