mIRC Home    About    Download    Register    News    Help

Print Thread
twitch script help fast #259103 04/10/16 03:11 PM
Joined: Sep 2016
Posts: 12
L
Liquid Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Sep 2016
Posts: 12
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
  }
}

Re: twitch script help fast [Re: Liquid] #259105 04/10/16 03:44 PM
Joined: Jun 2015
Posts: 84
F
Fonic_Artes Offline
Babel fish
Offline
Babel fish
F
Joined: Jun 2015
Posts: 84
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.