And if that wasn’t bad enough, Daren Moshe and his crying family members had to endure listening to Brooklyn federal court Judge William Kuntz recite four verses from the ’80s Glenn Frey song “Smuggler’s Blues.”

The 24-year-old baby-faced felon was busted two years ago for shipping the chemical compound Alpha PVP – used to make designer drug known as “molly” — to a White Plains UPS store.

He admitted to selling that and other drugs on dark web sites like Silk Road and Agora in an effort to be cool.

“I thought I would be someone others could turn to and I would be quote-unquote popular,” a well-spoken Moshe, who suffers from depression and was bullied as a kid for his looks, said in court. “I wish I could take back what I’ve done.”

Moshe, who is currently pursuing a business administration degree from Baruch, told the judge his life took a “drastically wrong turn” when he became addicted to marijuana as a way to relieve his anxiety and low self-esteem.

“One of the first thoughts I had alone in my cell was I could not wait to get out so I could use drugs again,” he said. “It was the last thing I thought about before I went to bed and the first thing I thought about when I woke up.”

Moshe made as much as $18,000 a week in bitcoin currency by dealing drugs and pocketed $250,000 by the time of his arrest, according to Kuntz.

But now, he volunteers by speaking to recovering drug addicts and has been clean for two years. He also hopes to one day earn his Master’s degree in finance or business administration – after serving hard time.

Under federal sentencing guidelines, Moshe faced between nine and more than 11 years in prison – but Kuntz said a more lenient sentence was appropriate.

The judge read the lyrics to the late Eagles guitarist’s song, which inspired a “Miami Vice” episode about drug dealing, in capping the nearly 90-minute proceeding.

Kuntz said just because the drugs are dealt on the dark web doesn’t make it different “than if they were exchanged on a dark corner.”

Moshe, who’s been out on $50,000 bail, must surrender to authorities January 30.