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

Subscriber Notifications / Highlights #347

Closed
2 tasks done
goldbattle opened this issue Aug 14, 2022 · 1 comment
Closed
2 tasks done

Subscriber Notifications / Highlights #347

goldbattle opened this issue Aug 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@goldbattle
Copy link
Collaborator

Checklist

Describe your issue here

The highlight messages don't seem to be working in the pre-release 1.50.0 for me.
Was originally added way back here: #19
Testing at 1:33 into this VOD are the below results.
1553966638_example.json.txt

What I see in 1.50.0 (the text seems to go out of bounds also):
image

What I see in 1.40.7:
image

The message has the correct notice param:

"user_notice_params":{"msg-id":"resub"}
@goldbattle goldbattle added the bug Something isn't working label Aug 14, 2022
@lay295
Copy link
Owner

lay295 commented Oct 24, 2022

Yeah, kinda forgot about it when rewriting the rendering code.

Added it back now and fixed it. Looks like the twitch chat API is no longer letting us know when it's a sub message though with the v5 API, and in the new GQL query they're using it doesn't tell us anything either.

image

I just guess if it's a sub message now since the API is no longer telling us. I still have to double check if it tells us if it's a highlighted message. If they're not telling us it's a sub message anymore I doubt it though.

private bool IsSubMessage(Comment comment)
{
//If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck
if (comment.message.body.StartsWith(comment.commenter.display_name + " subscribed at Tier") || comment.message.body.StartsWith(comment.commenter.display_name + " subscribed with Prime"))
return true;
return false;
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants