A nightcap is a drink taken shortly before bedtime. For example, a small alcoholic beverage or glass of warm milk can supposedly promote a good night's sleep. From Wikipedia
The ESPN personality apologized for the incident, initially claiming his account was hacked before confessing it was a mistake.