break up with him, and don't talk to the "friend", who arguably isn't a true friend if they are hooking up with your bf knowingly. Don't get revenge or do the same as other posters suggest, it's not worth it and would just make things a 100x worse than they already are, also you'll come out of it as a better person for just breaking up with your bf and friend.