# connected

The `connected`event is triggered once a successful connection is made. After this event, is safe to join a channel.

<pre class="language-javascript"><code class="lang-javascript"><strong>bot.on('connected', () => {
</strong>    // Write your code once it is succefully connected.
});
</code></pre>
