It’s the last one! The key to an effective persuasion is to know what you want and be clear about your response.
They have a sound package. More info here: https://atom.io/packages/sound
A troll's main goal is to provoke a reaction from people, so I'd say the best way to stop the troll in his or her tracks would be to log off and not give the troll any satisfaction.
Then again, the troll might see you logging off as a win because he or she made you rage quit, so maybe replying with a quick "no u" to troll the troll before logging off would throw them off. That being said, the long term solution would still be not responding at all. After a while of no reactions the troll would most likely get bored.