rmmh / skybot

Python IRC bot
https://github.com/rmmh/skybot/wiki
The Unlicense
250 stars 171 forks source link

Listing users in a channel #208

Open j2wick opened 5 years ago

j2wick commented 5 years ago

I was interested to get a list of users in a channel because I'd like to highlight certain individuals, but I want to actually check if they're in the channel so I could include the logic to highlight the person only when they're connected

I was trying to use the NAMES command in irc followed by the channel but I dont think that actually returns any output that I could store in a variable for my purposes..

e.g connection.cmd('NAMES', ['#channel'])

What could I do instead to fetch a user list from a channel?