Go toward people, groups and activities that make you feel good. Just as someone draining you negatively affects your energy, so being around happy people that make you feel comfortable will have a positive effect.
In a work or professional situation, this can mean, seeking out coworkers whose energy you really like and finding ways to spend more time together. Coordinate lunch or coffee breaks, schedule a video chat, or getting together for after-work drinks. Your social circle, especially in the workplace, does not need to be a large one, as quality over quantity tends to prevail.
Seeking out and tuning in to people who leave you feeling energized makes it that much easier to protect yourself from the influences of those who don’t.