We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Any easy way to scan all host on channel and take action on match?
The text was updated successfully, but these errors were encountered:
Looks like an easy way is to add a callback on event 353, which is sent after a join on a channel with the following code:
bot.AddCallback("353", func(e *irc.Event) { channel := e.Arguments[2] users := e.Arguments[3:] fmt.Printf(">>> Channel %s with users: %+v\n", channel, users) })
Here users is a []string containing the nicks present in the channel the bot joined.
users
channel
Sorry, something went wrong.
I have a gist with some notes on this and an implementation for a different IRC library.
No branches or pull requests
Any easy way to scan all host on channel and take action on match?
The text was updated successfully, but these errors were encountered: