Artificial intelligent assistant

fair-weather friend

fair-weather friend

someone who is only your friend when you are happy and successful.

I had a lot of money and I knew a lot of people, but most of them turned out to be fair-weather friends.

Cambridge English Idioms Dictionary

yu7NTAkq2jQ_IwuEI0_mknjY4GsOraRM c3a67c1c5590019e33a575daa386294a