mIRC Homepage
Posted By: Liquid twitch script help fast - 04/10/16 03:11 PM
in my script (shown below) when someone subs my chat is in colored text. i dont like it/ how do i get rid of the colored text?
Code:
on 1:connect: { raw CAP REQ :twitch.tv/tags }


on 1:text:*subscribed*:#timthetatman:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == $null ) { 
    describe $chan ceezSubginity ceezExplo  Thanks for subbing! Welcome TO THE ARMY $1! ceezExplo ceezSubginity 
  }
}

raw USERNOTICE:*:{
  if ($msgtags(room-id).key ==  36769016) {
    if ($2- == $null) && (resub isin $msgtags) {
      describe $msg $1 ceezExplo ceezP $msgtags(display-name).key has just resubscribed to the Tatman ARMY for $msgtags(msg-param-months).key months in a row!!
    $msg ceezExplo ceezP    }
    else {
      describe $msg $1 ceezP ceezExplo $msgtags(display-name).key has Resubbed for $msgtags(msg-param-months).key months! Welcome Back! ceezExplo ceezP
    }
  }
}


on *:TEXT:*:#: {
  if ($nick == Liiquid9) {
    msg # Room ID: $msgtags(room-id).key
  }
}
Posted By: Fonic_Artes Re: twitch script help fast - 04/10/16 03:44 PM
Code:
on 1:connect: { raw CAP REQ :twitch.tv/tags }


on 1:text:*subscribed*:#timthetatman:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == $null ) { 
    msg $chan ceezSubginity ceezExplo  Thanks for subbing! Welcome TO THE ARMY $1! ceezExplo ceezSubginity 
  }
}

raw USERNOTICE:*:{
  if ($msgtags(room-id).key ==  36769016) {
    if ($2- == $null) && (resub isin $msgtags) {
      msg $msg $1 ceezExplo ceezP $msgtags(display-name).key has just resubscribed to the Tatman ARMY for $msgtags(msg-param-months).key months in a row!!
    $msg ceezExplo ceezP    }
    else {
      msg $msg $1 ceezP ceezExplo $msgtags(display-name).key has Resubbed for $msgtags(msg-param-months).key months! Welcome Back! ceezExplo ceezP
    }
  }
}


on *:TEXT:*:#: {
  if ($nick == Liiquid9) {
    msg # Room ID: $msgtags(room-id).key
  }
}



The USERNOTICE part of the code may be wrong since I don't use $msgtags much.

Otherwise the describe phrase works in the manner of /me for Twitch. Thus changing it to just msg would send a regular message.
© mIRC Discussion Forums