I hope you can find some joy in your life, find other things that are worth living for. You're on Hackernews, so I'm assuming you're into tech. Maybe you can apply your skills to more altruistic projects. Helping others might help with one's mental health.
Hope this is not too personal, but why did you choose to set yourself on fire? It's a brutal and painful way to go. It's also brutal for the person who would have found you, seeing the disfigured and charred body.
Maybe in a suicidal state of mind it's difficult to think about the after effects and all you can think about is to end the pain of living.