This is what I'm working with. It works, but when someone resubs and adds a custom message, it doesnt trigger. Where am I going wrong :^(
on *:LOGON:*:{
raw CAP REQ :twitch.tv/membership
raw CAP REQ :twitch.tv/tags
raw CAP REQ :twitch.tv/commands
/debug raw
}
on 1:text:*subscribed*:#channelname:{
if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
elseif ($nick == twitchnotify) && ( $4 == $null ) { describe $chan $1 just subscribed to the stream! }
}
raw USERNOTICE:*#channelname:{
if ($1 == #channelname) {
if ($2- == $null) && (resub isin $msgtags) {
msg $1 /me $msgtags(display-name).key has been subbed for $msgtags(msg-param-months).key months in a row!
}
else {
msg $1 /me $msgtags(display-name).key has been subbed for $msgtags(msg-param-months).key months in a row with the message: " $2- "!
}
}
}