Quick Question, How do I deal with this VERY ANNOYING Teammate

So I am playing with some friends over through discord, and one of them (I will call him bob) makes characters with a bit of a light temper, not that bad right?

Well, you’re wrong, if you do something or say something he doesn’t like, he makes his character slash you with his greatsword, it happened in multiple campaigns now, to my wizard (WHO ALMOST FAILED HIS DEATH SAVES BECAUSE HE ALMOST KILLED HIM) and to my bard. He’s a great friend of mine but how do I make him stop just slicing every teammate up that doesn’t agree with him?

Thank you all in advance.