Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't join channel until fully connected (sasl) #348

Open
ralyodio opened this issue Dec 14, 2022 · 3 comments
Open

can't join channel until fully connected (sasl) #348

ralyodio opened this issue Dec 14, 2022 · 3 comments

Comments

@ralyodio
Copy link

Is there an event I can listen to like irc.on('connected', ...) ??

@dgw
Copy link

dgw commented Dec 14, 2022

How about 'registered'?

bot.on('registered', function() {
console.log('Connected!');
bot.join('#prawnsalad');

@ralyodio
Copy link
Author

onregistered is when you register a name i think. you only do that once.

@dgw
Copy link

dgw commented Dec 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants