gempir / go-twitch-irc

go irc client for twitch.tv
MIT License
357 stars 59 forks source link

FR: add support for Membership Capability #20

Closed shawnbutts closed 6 years ago

shawnbutts commented 6 years ago

https://dev.twitch.tv/docs/irc#twitch-irc-capability-membership

I'm working on a bot that needs to track active users in the chat. This would, and the ability to run the NAMES command periodically, would be very helpful.

gempir commented 6 years ago

It certainly fits in go-twitch-irc but it's not a priority for me to implement.

smt923 commented 6 years ago

I went ahead and wrote up a PR for this as best as I could, I don't believe there's any way to manually send a NAMES command (it doesn't seem to do anything) but I've made it so a userlist is kept up to date via joins/parts, which should be 'good enough' when twitch isn't acting up, though this won't help for channels over 1000 viewers but that's by twitch's design