-
Notifications
You must be signed in to change notification settings - Fork 3
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
Send custom tags with PRIVMSG #3
Comments
Twitch documentation doesn't mention sending any client-nonces through PRIVMSGs: https://dev.twitch.tv/docs/irc/tags/#privmsg-tags |
Someone in Twitch Dev Discord server did say you can send a client nonce... i can't confirm or deny since i'm on holiday for a week or two. https://discord.com/channels/504015559252377601/523676013494796288/1089671374932561941 |
Yeah, Twitch does not have anything about it in their docs, but you can definitely send them, i.e. this is what the default webchat will send: No idea what Twitch uses it for, since they are not doing anything with the received tag client-side, but considering that i.e. the Twitch recap for whatever reason only counts emotes sent over webchat for their stats, they might do something with it on the backend. But you can also send completely custom The nonce-tag will even be present on the resulting USERSTATE you receive back from Twitch: There is also a
|
@LosFarmosCTL Does the new PR solve this? The changes are available in the |
LGTM on first sight, I can go ahead and test it properly in a few hours, but as long as the test is successful that looks like the correct IRC message. |
Sorry, I had absolutely no time, i guess it's merged now anyways but I can confirm that everything works correctly. |
* feat: add initial IRC implementation * fix: re-add accidentally deleted file * fix: finish message queue on disconnect * feat: specify what kind of messages should be received on which connection * fix: read connection doesn't need to pass NOTICEs There are only 2 cases where a NOTICE can be received on the read connection. Both of them are received on an unsuccessful JOIN and can be handled there. * style: only apple swiftlint rule disabling for the next occurence * chore: remove TODO * build: update TwitchIRC dependency * fix: add clientNonce into the PRIVMSG directly, see MahdiBM/TwitchIRC#3 * chore: revert unrelated change * build: update TwitchIRC dependency * chore: add TODO comment * build: add websocket-kit as a dependency for linux * refactor: rewrite the continuation system * chore: handle potential unknown types of websocket messages * fix: clean up channel names before sending them over IRC * fix: remove completed continuations from the connections list * various changes, too lazy for separate commits * feat: implement timeouts for IRC requests * build: update runner to macOS 13 * build: update platform requirements to macOS 13, iOS/iPadOS 16, watchOS 9
Is it possible to add custom tags to outgoing PRIVMSGs? There is the
messageIdToReply
argument, but I'd specifically want to send a customclient-nonce
to verify messages being sent successfully.I can't see an option to add any additional tags, afaik
client-once
is the only one that even affects anything when sent to TMI, but it would be nice to have either a way of sending that specifically or an option for completely custom tags (IncomingMessage
already contains the client-nonce tag).The text was updated successfully, but these errors were encountered: