Getting sober is one thing, but staying sober is a lifetime commitment for those who have struggled with addiction in the past — and Demi Lovato still works hard at it every day.

The 23-year-old Confident singer has always been open about her struggles with sobriety and mental illness, but she revealed new details about the dark days surrounding her rehab stint and how she still avoids certain triggers in a new interview with Refinery29.

'I had to learn the hard way that I can’t do parties anymore. Some people can go out and not be triggered, but that’s not the case for me,' she said.

Scroll down for video

Working hard: Demi Lovato shared more details about her battle with addiction in a new interview

Opened up: The star has been open and honest about her history with drugs and mental illness

Little nightmare: She said that at her worst (pictured celebrating her 18th birthday in 2010 shortly before she went into rehab), she was taking cocaine every hour

Demi was a teenager when she began doing drugs, spiraling out of control and spurning any attempts by her family or handlers to help her.

'Prior to getting sober, I was one of those people who was like, I don’t give a f***, whatever.

RELATED ARTICLES

Share this article

And I used that as an excuse to do whatever I wanted. I was a nightmare to work with,' she said, adding that she was 'just b****y, a c***.'

At her worst point, she couldn't go more than an hour without doing cocaine.

Good influence: She now avoids parties because the temptation is always there, and instead often just hangs out at home with boyfriend Wilmer Valderrama

'If anyone tried to get her to cool it, she'd threaten them, reminding everyone that she paid their bills.

Luckily, though, she did eventually go to rehab. That wasn't the end of it, though: She admitted to Refinery29 that she relapsed a few times after getting out.

Since she assumed her drug use was just a symptom of her bipolar and eating disorders, she didn't take stopping quite as seriously as she should of.

Easy rider: She's set to go on tour with Nick Jonas next month and will have no alcohol in her dressing room

Finally, she quit for good — but insists that keeping up a sober lifestyle takes repeatedly making the right decisions and avoiding temptation. To that end, she has a dry rider for her upcoming 42-city tour with Nick Jonas, Future Now.

There's to be no liquor in her dressing room, but instead it will be stocked with plenty of lemon sparking water and a humidifier.

She also avoids going out to clubs or parties, knowing the temptation there is too great. Instead, she often stays home with longtime beau Wilmer Valderrama.

Stress relief: Instead of turning to drugs. alchol or food, this star now gets her frustrations out another way

Demo day: On Tuesday, Demi took a break from the studio to smash up an old ping pong table

Going cheap: The singer posted her ping pong table demolition on SnapChat and joked the table was for sale

She's aware that she faces some triggers in less expected ways, too.

For instance, she wouldn't let herself watch a documentary about Amy Winehouse, for fear of seeing drugs and drug use in a movie that might tempt her.

'I know [my life] sounds so boring. But I’ve come to a place where I’d rather be relaxed than get all dressed up and go to some party or club with people who don’t really care about my well-being at all,' she said.

On track: Demi admitted that she relapsed after rehab but is on the straight and narrow now

She still feels like she has some way to go. Demi said she thinks she is often underestimated because of her Disney past, so she still has something to prove — that she has a great voice, that she can stay sober. But mostly, she wants to prove those things to herself.

'I’ve been doing this so long I literally laugh at the things people say,' she said. 'You’re not going to agree with everybody and you’re not going to please everybody.'

One person she disagreed with recently wasn't a hater, but a fellow celebrity. After Kesha's very public trial with producer Dr. Luke, whom she accused of sexually assaulting her, Demi tweeted in support of the singer.

Brave: Earlier this year, Demi tweeted in support of Kesha after she went to court against Dr. Luke, whom she accused of sexual assault

Anrgy: She also called out Taylor Swift — but not by name — for donating money to Kesha's legal fund rather than go to Congress

Sorry, sort of: She admits now that she got carried away but still believes in what she said

She also, however, seemed to call out another star: Taylor Swift. In a thinly-veiled string of tweets, she seemed to accuse Taylor of being a fake feminist, lashing out at her for donating $250,000 to Kesha's legal defense instead of doing something that Demi would characterize as more substantial.

Now, Demi admits she got 'too passionate' and 'carried away' in her Twitter rant. She didn't exactly take back what she said, but she realized that her 'feud' became the headline instead of Kesha's troubles.And those troubles are important to Demi.

'I don’t know what happened, and it’s none of my business, to be honest. My thing was whether it did or didn’t happen, this is somebody coming forward,' she said.

'And unfortunately, there’s way too much shame put on victims coming forward talking about being date-raped, raped, sexually abused. So then people feel like they can’t come forward anymore because they’ll just be torn to shreds.'