A Gardiner man was sentenced to three years in federal prison Tuesday for robbing a Rite Aid pharmacy in Bridgton on Thanksgiving in 2013.

Robert Richard, 26, pleaded guilty to the offense last October.

During the robbery, Richard wore a hooded sweatshirt and sunglasses and gave the pharmacist a note saying, “All your oxycodone now!” according to a news release from the U.S. Attorney’s Office.

U.S. District Court Judge D. Brock Hornby ordered Richard to serve three years of supervised release following the prison term.

Working on the investigation were the FBI, and police in Bridgton, Augusta and Gardiner as well as the sheriff’s departments in Kennebec and Androscoggin counties.