There are some kinds of distractions that skirt the line between motivation and distraction. For me, the big one is Discord (I miss you, IRC).
Being part of a community is a big deal. You can get a lot from finding a group of like-minded friends to talk with. The people in that community can also provide plenty of motivation and expertise if you happen to be stuck on a problem. It’s a fine line though.
You can easily get sucked into drama, waste hours chatting about nothing, or even worse: get into an argument (I’m looking at you, Reddit).
When used wisely, online communities are fantastic. Be careful.