How does one think more optimistically and not about self depreciation?

I have been negatively affected by this and people have told me to stop it for my own good. I would then do that and do things that make myself look like a narcissist, while other times I revert back to self deprecating myself as I feel like it’s the best place for me. How do I think more optimistically and not sound like a narcissist and abandon the ways of thinking I’m a nuisance to everyone?
How does one think more optimistically and not about self depreciation?
Post Opinion