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

Set Capabilities #173

Open
Chronophylos opened this issue May 26, 2022 · 6 comments
Open

Set Capabilities #173

Chronophylos opened this issue May 26, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@Chronophylos
Copy link
Contributor

I'd like to set irc capabilites without having to send the CAP message when connecting to the irc. Specifically I want the twitch.tv/membership capability.

@RAnders00
Copy link
Collaborator

What is your use case of the membership capability? I'm asking because this might be a case of an XY problem.

This library doesn't request the membership capability because it is notoriously unreliable and completely stops working in very large chats, making it unfit for most use cases that I can think of - however I'm interested in hearing your use case.

@Chronophylos
Copy link
Contributor Author

I want to monitor who joins a channel. The channel in question in rather small which is why the JOIN messages should be reliable.

@RAnders00 RAnders00 added the enhancement New feature or request label Jun 1, 2022
@GabeDuarteM
Copy link

GabeDuarteM commented Aug 15, 2022

I usually see this as being disabled by default, but with the option to enable it, like for example with the crate twitchchat, this behaviour can be enabled if you call .enable_all_capabilities() on the config builder. I see some javascript libraries use a list of capabilities to achieve that same functionality as well...

My primary use case would be to monitor who joins channels that I moderate, so the bot can preventively ban them if the user is part of a personal list, which contains a lot of people that do hate raid, that are bot accounts, and such.

Maybe if we add the option, with the warning that it may be unstable on bigger channels, which is why its disabled by default, could be a good comprimise

@lorislibralato
Copy link

lorislibralato commented Dec 19, 2022

What is your use case of the membership capability? I'm asking because this might be a case of an XY problem.

This library doesn't request the membership capability because it is notoriously unreliable and completely stops working in very large chats, making it unfit for most use cases that I can think of - however I'm interested in hearing your use case.

With twitch.tv/membership you can get the list of users in the chat after you join the channel
https://dev.twitch.tv/docs/irc/capabilities

@RAnders00
Copy link
Collaborator

What is your use case of the membership capability? I'm asking because this might be a case of an XY problem.
This library doesn't request the membership capability because it is notoriously unreliable and completely stops working in very large chats, making it unfit for most use cases that I can think of - however I'm interested in hearing your use case.

With twitch.tv/membership you can get the list of users in the chat after you join the channel https://dev.twitch.tv/docs/irc/capabilities

As I said, this is unreliable, using https://tmi.twitch.tv/group/user/usernamehere/chatters is generally preferable, because the twitch.tv/membership capability stops working in larger chats. You can poll this API endpoint regularly and with that compute who joined and left the chat.

Is there anything else that you wanted to add, because what you said as far as I can tell has already been said in the prior discussion? I‘m asking because I don‘t want to miss a valid additional discussion point.

@lorislibralato
Copy link

What is your use case of the membership capability? I'm asking because this might be a case of an XY problem.
This library doesn't request the membership capability because it is notoriously unreliable and completely stops working in very large chats, making it unfit for most use cases that I can think of - however I'm interested in hearing your use case.

With twitch.tv/membership you can get the list of users in the chat after you join the channel https://dev.twitch.tv/docs/irc/capabilities

As I said, this is unreliable, using https://tmi.twitch.tv/group/user/usernamehere/chatters is generally preferable, because the twitch.tv/membership capability stops working in larger chats. You can poll this API endpoint regularly and with that compute who joined and left the chat.

Is there anything else that you wanted to add, because what you said as far as I can tell has already been said in the prior discussion? I‘m asking because I don‘t want to miss a valid additional discussion point.

You are right, I didn't know that it doesn't work in chat having less than 1k users

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

No branches or pull requests

4 participants