Cabell County Circuit Judge Paul Farrell set trial for Jan. 17 and ordered the entertainer to submit to a urine test. The judge said the test was standard to determine if defendants are positive for drugs, but he also told Dick, "I suspect you may be." Farrell told Dick he would be jailed if he returned to court for a pre-trial hearing in September under the influence of drugs or alcohol.
"I understand. I've been sober," the blond-haired, bespectacled actor, wearing a dark suit and black tie, told the judge.
Prosecutor Sean Hammers said he had no objection to Dick remaining free on bail.
Dick, 45, was not asked to enter a plea. He quickly left the courtroom after the brief hearing and got into an elevator with attorney Marc Williams without speaking to reporters, who peppered Dick with questions.
The comedian is accused of grabbing a bouncer's crotch and groping and kissing a male patron earlier at a Huntington bar in January 2010. He was in town for a performance at the Funny Bone Comedy Club.
Dick has been in trouble with the law several times before.
He's been arrested in California on drug and battery charges, to which he pleaded guilty in 2008, and on charges of being drunk and disorderly in a restaurant in May of this year. A Texas man sued Dick earlier this year, claiming the comedian exposed his genitals at a Dallas performance.
Dick had a long-running stint in the 1990s on NBC's "NewsRadio." He briefly had his own program, "The Andy Dick Show," on MTV. He also has had roles in several movies, including "Dude, Where's My Car?" and "Old School."