# New Subscriber event in IRC

**URL:** <https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773>\
**Category:** Chat and IRC\
**Created:** [March 26, 2017, 2:52pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773 "2017-03-26T14:52:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![pidgezero\_one](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@pidgezero\_one](https://staging-discuss.dev.twitch.com/u/pidgezero_one)\
**Post date:** [March 26, 2017, 2:52pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/1 "2017-03-26T14:52:17Z")

</div>

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](https://dev.twitch.tv/docs/v5/guides/irc/) only covers re-subs, which as I can tell from [this announcement](https://staging-discuss.dev.twitch.com/t/important-re-subscription-change/6463/) 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.)

Thank you!

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [March 26, 2017, 3:04pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/2 "2017-03-26T15:04:40Z")

</div>

`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_.

```auto
: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!

```

---

<div class="post-metadata">

**Author:** ![Adrenaline\_Life](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@Adrenaline\_Life](https://staging-discuss.dev.twitch.com/u/Adrenaline_Life)\
**Post date:** [March 26, 2017, 4:12pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/3 "2017-03-26T16:12:35Z")

</div>

Ok, how do I determine account name of a new sub? CoolStoryBob

---

<div class="post-metadata">

**Author:** ![pidgezero\_one](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@pidgezero\_one](https://staging-discuss.dev.twitch.com/u/pidgezero_one)\
**Post date:** [March 26, 2017, 4:24pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/4 "2017-03-26T16:24:02Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [March 27, 2017, 1:36am UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/5 "2017-03-27T01:36:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HerrAusragend](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/herrausragend/32/4155_2.png) [@HerrAusragend](https://staging-discuss.dev.twitch.com/u/HerrAusragend)\
**Post date:** [April 1, 2017, 8:44pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/6 "2017-04-01T20:44:39Z")

</div>

You can also use the following endpoint to get a user by name:

```auto
https://api.twitch.tv/kraken/users?login={name}

```

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [April 2, 2017, 5:28pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/7 "2017-04-02T17:28:05Z")

</div>

Which doesn’t work when the new sub is announced using their display name of korean characters.

So for ease of use we gotta use search 😑

---

<div class="post-metadata">

**Author:** ![cronzzz](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/cronzzz/32/2512_2.png) [@cronzzz](https://staging-discuss.dev.twitch.com/u/cronzzz)\
**Post date:** [April 9, 2017, 12:41pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/8 "2017-04-09T12:41:58Z")

</div>

Hello guys,

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.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [April 9, 2017, 12:58pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/9 "2017-04-09T12:58:15Z")

</div>

You cannot determine duration of a new subscriber (or any subscriber for that matter).

---

<div class="post-metadata">

**Author:** ![cronzzz](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/cronzzz/32/2512_2.png) [@cronzzz](https://staging-discuss.dev.twitch.com/u/cronzzz)\
**Post date:** [April 9, 2017, 1:08pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/10 "2017-04-09T13:08:36Z")

</div>

@3ventic [this article](https://staging-discuss.dev.twitch.com/t/important-re-subscription-change/6463) 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?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [April 9, 2017, 1:31pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/11 "2017-04-09T13:31:20Z")

</div>

It’s the month of sub the user is starting (and thus paid for).

So the first “resub” is “2 months in a row” and “today this day of the notification is day one of the second month” in this example

Give or take a notification time period

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [April 11, 2017, 1:01pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/12 "2017-04-11T13:01:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [May 11, 2017, 1:01pm UTC](https://staging-discuss.dev.twitch.com/t/new-subscriber-event-in-irc/9773/13 "2017-05-11T13:01:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
