The example for 'registered' literally logs "Connected!" and then joins a channel.
A 'registered' event is emitted when irc-framework receives RPL_WELCOME, i.e. the client has finished connecting to the network. Read more about "connection registration" here.
Is there an event I can listen to like
irc.on('connected', ...)
??