mIRC Home    About    Download    Register    News    Help

Print Thread
Twitch resubs and new subs #258456 06/07/16 12:11 AM
Joined: Mar 2016
Posts: 7
T
thewizard_123 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Mar 2016
Posts: 7
Do you guys know a good script for resubs and welcoming new subs, but with no colour. The one I currently use has colour and I would like it just plain. Here's what it look likes https://gyazo.com/bc03f02988f7de37abfe2f7f2bae1cda. Also, I would like one with resub as well eek

This is the script I currently use for new subscribers and the gyazo above shows example of what it looked like:
on 1:TEXT:*subscribed*:#lirik:{
if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
elseif ($nick == twitchnotify) && ( $4 == $null ) { describe $chan Welcome $1 lirikH $+ ! }
}

This one was my old one, with just plain text, no colour highlight. This one doesn't seem to work due to update:
on *:text:*subscribed*:#lirik: {
if ($nick == twitchnotify) {
if (!$4) {
msg $chan welcome $1 lirikH enjoy your stay lirikH
}
elseif (to !isin $1-) {
msg $chan welcome back $1 lirikH
}
}
}

Hope to hear from one of you guys soon! laugh

Last edited by thewizard_123; 06/07/16 12:15 AM.
Re: Twitch resubs and new subs [Re: thewizard_123] #258457 06/07/16 02:36 AM
Joined: Jun 2014
Posts: 77
K
Khonor Offline
Babel fish
Offline
Babel fish
K
Joined: Jun 2014
Posts: 77
Hey @thewizard_123,


Try using this code:

Quote:
on *:LOGON:*:{
raw CAP REQ :twitch.tv/tags
raw CAP REQ :twitch.tv/membership
raw CAP REQ :twitch.tv/commands
/debug @raw
}

on 1:TEXT:*subscribed*:#CHANNEL NAME HERE:{
if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
elseif ($nick == twitchnotify) && ( $4 == $null ) { /msg $chan welcome $1 lirikH enjoy your stay lirikH }
}


raw USERNOTICE:*:{
if (($msgtags(msg-id).key == resub) && ($1 == #CHANNEL NAME HERE)) {
var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
if ($0 == 1) {
/msg $chan $1 welcome back %nick for $msgtags(msg-param-months).key months in a row! lirikH
}
else {
/msg $chan $1 welcome back %nick for $msgtags(msg-param-months).key months in a row with the message: $qt($2-) lirikH
}
}
}

Re: Twitch resubs and new subs [Re: Khonor] #258459 06/07/16 04:03 AM
Joined: Mar 2016
Posts: 7
T
thewizard_123 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Mar 2016
Posts: 7
I don't want it to mention how many months, how would I remove that?