A person who's an asshole
, or douche
but is still pretty lovable because they aren't an asshole to the full extent nor a that one relentless shithead who's always giving you a hard time. A lot of sarcastic people are lovable asshole.
Can be a friend and an asshole at the same time.