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

Username is new to chat #140

Closed
PomegranateApps opened this issue Aug 16, 2018 · 10 comments
Closed

Username is new to chat #140

PomegranateApps opened this issue Aug 16, 2018 · 10 comments
Labels

Comments

@PomegranateApps
Copy link

This event does not work for me. I’ve had new people enter my stream with a chat message but this event never gets triggered.
https://github.com/twitch-apis/twitch-js/blob/HEAD/docs/Chat/Events.md#ritual

This is what my code looks like.

client.on('ritual', (channel, username, type, userstate) => {
	if(type == "new_chatter")
	{
		client.say(channel, "Welcome " + username + "!");
	}
});
@marcandrews
Copy link
Member

Please use the issue template.

What version of twitch-js are you using?

@marcandrews
Copy link
Member

... also, can you post the raw message from Twitch that fails to trigger the event?

@PomegranateApps
Copy link
Author

How would I log the raw message? I'm using version 1.2.14.

@marcandrews
Copy link
Member

If you are running in [Chrome] browser, you can capture the message from DevTools > Network tab > WS tab. If you are running in Node, unfortunately I don't think v1 exposes the raw message.

I am pretty sure this works on v2 (example event). Any chance you can try v2?

@sogehige
Copy link

As far as my observation goes. This functionality looks broken on v2 as well.

I checked correctness of messages as they are in twitch docs and it looks ok. I am planning to investigate it more, but my first impression is that its something broken on twitch tmi side or they changed message
formt without updating docs.

@sogehige
Copy link

Logging messages from twitch on twitchpresents for several hours...no ritual tmi messages.

I created thread on twitch forum so we'll see what is going on: https://discuss.dev.twitch.tv/t/ritual-new-chatter-is-not-being-sent/17878

@sogehige
Copy link

So, other users on forum are not experiencing this issue.

@BarryCarlyon
Copy link

twitchpresents does not have rituals enabled…

@broadcaster-lang=;emote-only=0;followers-only=-1;r9k=0;rituals=0;room-id=149747285;slow=6;subs-only=0 :tmi.twitch.tv ROOMSTATE #twitchpresents

@marcandrews
Copy link
Member

If the end user tries to add an event listener to rituals, we could check roomState and if rituals are disabled, issue a warning.

@marcandrews
Copy link
Member

This, unfortunately, may be out-of-scope for an SDK.

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

No branches or pull requests

4 participants