How do you become more bubbly and happier?

I’ve been really pessimistic for years and I’ve become a bitter hermit. I want to make friends desperately but I feel like my personality is the problem. How do I become more bubbly and attract people to want to be around me. I want to be a better version of myself I don’t want to be the mean recluse who is mad at life anymore.