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

Add support for /announce[color] command variations #5218

Open
Mm2PL opened this issue Mar 1, 2024 Discussed in #4367 · 5 comments
Open

Add support for /announce[color] command variations #5218

Mm2PL opened this issue Mar 1, 2024 Discussed in #4367 · 5 comments
Labels
Feature request Feature request that has been approved that it would fit into the project

Comments

@Mm2PL
Copy link
Collaborator

Mm2PL commented Mar 1, 2024

Discussed in #4367

Originally posted by Pafon22 February 11, 2023
Unrecognized command when sending /announce with any color.
Insert /announceblue /announcegreen /announceorange /announcepurple in the options when possible. I don't know if Twitch already has the endpoint for this.

However first colored announcement support needs to be implemented. I can see this functionality being merged into a single PR if neither part is too large.

@Mm2PL Mm2PL added the Feature request Feature request that has been approved that it would fit into the project label Mar 1, 2024
@pajlada
Copy link
Member

pajlada commented Mar 1, 2024

When implementing the commands, they should replicate Twitch chat's behaviour
image

@4rneee
Copy link
Contributor

4rneee commented Mar 13, 2024

Supporting the /announce[color] commands would be very straight forward and I could create a PR for that.
I also looked a bit into displaying colored announcements and don't know how (or if) this can be implemented because I didn't find any documentation. https://dev.twitch.tv/docs/irc/tags/#usernotice-tags doesn't even document the announcement notice in the msg-id tag which we currently use to detect announcements.

@pajlada
Copy link
Member

pajlada commented Mar 13, 2024

I'm ok with implementing sending, even if receiving colored announcements don't work

@Mm2PL
Copy link
Collaborator Author

Mm2PL commented Mar 13, 2024

Here are some example announcement messages:

Examples
@badge-info=;badges=broadcaster/1,no_audio/1;color=#DAA520;display-name=Mm2PL;emotes=;flags=;id=98928e18-2c4c-4914-97ea-032a8b47d94c;login=mm2pl;mod=0;msg-id=announcement;msg-param-color=BLUE;room-id=117691339;subscriber=0;system-msg=;tmi-sent-ts=1710346144413;user-id=117691339;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #mm2pl :blue
@badge-info=;badges=broadcaster/1,no_audio/1;color=#DAA520;display-name=Mm2PL;emotes=;flags=;id=c3e34a2e-b7be-4608-a8b2-18c6c455c302;login=mm2pl;mod=0;msg-id=announcement;msg-param-color=GREEN;room-id=117691339;subscriber=0;system-msg=;tmi-sent-ts=1710346157120;user-id=117691339;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #mm2pl :green
@badge-info=;badges=broadcaster/1,no_audio/1;color=#DAA520;display-name=Mm2PL;emotes=;flags=;id=dcf6e51b-5e11-4f34-8aef-8a27dc890592;login=mm2pl;mod=0;msg-id=announcement;msg-param-color=ORANGE;room-id=117691339;subscriber=0;system-msg=;tmi-sent-ts=1710346160360;user-id=117691339;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #mm2pl :orange
@badge-info=;badges=broadcaster/1,no_audio/1;color=#DAA520;display-name=Mm2PL;emotes=;flags=;id=646a9777-9e23-4e4a-85c9-171a56766e0d;login=mm2pl;mod=0;msg-id=announcement;msg-param-color=PURPLE;room-id=117691339;subscriber=0;system-msg=;tmi-sent-ts=1710346162937;user-id=117691339;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #mm2pl :purple
@badge-info=;badges=broadcaster/1,no_audio/1;color=#DAA520;display-name=Mm2PL;emotes=;flags=;id=d93a10ba-d79e-4177-ae72-35ffddbf4833;login=mm2pl;mod=0;msg-id=announcement;msg-param-color=PRIMARY;room-id=117691339;subscriber=0;system-msg=;tmi-sent-ts=1710346166508;user-id=117691339;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #mm2pl :my primary color #DAA520

The tag for the color is msg-param-color.

system-msg tag is always empty, the user text is only in the message content,
msg-param-color IS NOT a hex color, don't be fooled, it's an enum of BLUE, GREEN, ORANGE, PURPLE, PRIMARY (this value means to use the color tag)

@4rneee
Copy link
Contributor

4rneee commented Mar 13, 2024

Okay, thanks for the info. I opened a PR which only implements sending the commands.

Using your information I will further look into displaying colored announce messages and open another PR once I implemented it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Feature request that has been approved that it would fit into the project
Projects
None yet
Development

No branches or pull requests

3 participants