Artificial intelligent assistant

a fair-weather friend

a 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 a7ed4c17d319ed9dba2943fe9f18b6fb