I’m sure this has been asked before, but I couldn’t find anything clear on the topic in google, apologies.
I’m looking for the format of a new subscriber event in IRC. The documentation only covers re-subs, which as I can tell from this announcement is a different message type than new subs. I just need to know what the twitch IRC syntax is for a new subscriber event.
(I’m also assuming from reading the documentation that this cannot be retrieved with PubSub either.)
twitchnotify sends these as normal PRIVMSG messages. The message never contains tags at the moment and the first word will be the display name of the subscriber. This can be localized for asian users.
:twitchnotify!twitchnotify@twitchnotify.tmi.twitch.tv PRIVMSG #nl_kripp :Desmora just subscribed with Twitch Prime!
:twitchnotify!twitchnotify@twitchnotify.tmi.twitch.tv PRIVMSG #twitchpresents :Necktop just subscribed!
You’ll need to use the search API right now. Also remember display names may in some cases contain spaces, so you can’t reliably just take the first word.
I’ll join this topic with extended question. I found everything that @pidgezero_one and @3ventic wrote, my only question is HOW TO DETERMINE DURATION OF NEW SUB? i cant find anything about it anywhere.
@3venticthis article says that for resubs i will receive msg-param-months. this value is amount of months for current resub (example i’m making subs every 1/3/6 month’s) or it’s total amount of month’s that user is subscribed for channel?
Correct. I was answering on the assumption you were trying to figure out how many months they’ve paid for in advance (1,3,6). That’s not possible, while knowing how many are in the past on the current streak is by checking the notification data in chat.