tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 217 forks source link

"*upgrade" tests to be added #386

Closed AlcaDesign closed 4 years ago

AlcaDesign commented 4 years ago

giftpaidupgrade

SubscriberName is continuing the Gift Sub they got from SenderName!

@badge-info=subscriber/1;badges=subscriber/0;color=;display-name=SubscriberName;emotes=;flags=;id=00000000-0000-0000-0000-000000000000;login=subscribername;mod=0;msg-id=giftpaidupgrade;msg-param-sender-login=SenderName;msg-param-sender-name=sendername;room-id=123456789;subscriber=1;system-msg=SubscriberName\sis\scontinuing\sthe\sGift\sSub\sthey\sgot\sfrom\sSenderName!;tmi-sent-ts=1590000000000;user-id=987654321;user-type= :tmi.twitch.tv USERNOTICE #channelname

primepaidupgrade

SubscriberName converted from a Twitch Prime sub to a Tier 1 sub!

@badge-info=subscriber/2;badges=subscriber/0,premium/1;color=;display-name=SubscriberName;emotes=;flags=;id=00000000-0000-0000-0000-000000000000;login=subscribername;mod=0;msg-id=primepaidupgrade;msg-param-sub-plan=1000;room-id=123456789;subscriber=1;system-msg=SubscriberName\sconverted\sfrom\sa\sTwitch\sPrime\ssub\sto\sa\sTier\s1\ssub!;tmi-sent-ts=1590000000000;user-id=987654321;user-type= :tmi.twitch.tv USERNOTICE #channelname

anongiftpaidupgrade

SubscriberName is continuing the Gift Sub they got from an anonymous user!

@badge-info=subscriber/1;badges=vip/1,subscriber/0,premium/1;color=#D2691E;display-name=SubscriberName;emotes=;flags=;id=00000000-0000-0000-0000-000000000000;login=subscribername;mod=0;msg-id=anongiftpaidupgrade;room-id=123456789;subscriber=1;system-msg=SubscriberName\sis\scontinuing\sthe\sGift\sSub\sthey\sgot\sfrom\san\sanonymous\suser!;tmi-sent-ts=1590000000000;user-id=987654321;user-type= :tmi.twitch.tv USERNOTICE #channelname

Note \s should be escaped (\\s) when put in the code.