mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2016
Posts: 86
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
Ok, so I've asked this same type of question before in the forums about having multiple sub lines for whenever a person were to subscribe/resubscribe and nothing actually seems to be working properly. The code I have here needs extra lines added so it'll type one part of the message then on different chat lines say different things. Here's the script:

Code:
 on 1:connect: { raw CAP REQ :twitch.tv/membership }

on 1:text:*subscribed*:#mlgjrated:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == $null ) { describe $msg jrateLove $1 has just subscribed!! Welcome to the PEARdise!! jrateCool }
}

raw USERNOTICE:*:{
  if ($msgtags(room-id).key == 47456875) {
    if ($2- == $null) && (resub isin $msgtags) {
      describe $msg $1 jrateLove $msgtags(display-name).key has just resubscribed for $msgtags(msg-param-months).key months in a row!! Welcome back to the PEARadise!! jrateCool
    }
    else {
      describe $msg $1 jrateLove $msgtags(display-name).key has just resubscribed for $msgtags(msg-param-months).key months in a row!! Welcome back to the PEARadise!! jrateCool Message: $2-
    }
  }
} 


What I'm trying to add is the following lines to the sub script:

jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool (3x of lines)

Help would mean alot, thanks

Joined: Sep 2016
Posts: 11
P
Pie Offline
Pikka bird
Offline
Pikka bird
P
Joined: Sep 2016
Posts: 11
Add more $msg lines to the script like this:

Code:
on 1:connect: { raw CAP REQ :twitch.tv/membership }

on 1:text:*subscribed*:#mlgjrated:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == $null ) { 
    describe $msg jrateLove $1 has just subscribed!! Welcome to the PEARdise!! jrateCool
    $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool 
  }
}

raw USERNOTICE:*:{
  if ($msgtags(room-id).key == 47456875) {
    if ($2- == $null) && (resub isin $msgtags) {
      describe $msg $1 jrateLove $msgtags(display-name).key has just resubscribed for $msgtags(msg-param-months).key months in a row!! Welcome back to the PEARadise!! jrateCool
      $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool
      $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool
      $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool
    }
    else {
      describe $msg $1 jrateLove $msgtags(display-name).key has just resubscribed for $msgtags(msg-param-months).key months in a row!! Welcome back to the PEARadise!! jrateCool Message: $2-
      $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool
      $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool
      $msg jrateLove jrateHype jrateCool jrateLove jrateHype jrateCool
    }
  }
} 


Hope this helps! smile

Last edited by Pie; 16/09/16 08:34 PM.
Joined: Sep 2015
Posts: 33
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Sep 2015
Posts: 33
I have a question, how do you make that if resub is for example 5 month and bot would send 5 emotes and etc.


Link Copied to Clipboard