It's a combination of turning the other cheek, And laughing with him. And maybe taking the mickey out of him inside your head, but not to him and not to others - as that's rude.
And try focusing on the good people in your life. There must be some at your church for example?
Whilst paying the minimum of attention to idiots.