mIRC Home    About    Download    Register    News    Help

Print Thread
(Twitch) Sub alert with mulitple messages #258057 06/06/16 07:53 PM
Joined: Apr 2016
Posts: 86
B
Bestpeff Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
How can I turn this sub alert script...

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

on 1:text:*subscribed*:#bigfoltz:{
if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
elseif ($nick == twitchnotify) && ( $4 == $null ) { describe $chan foltzLove $1 has just subscribed foltzHype }
elseif ($nick == twitchnotify) && ( $4 isnum ) { describe $chan foltzLove $1 has subscribed for $4 months in a row! foltzHype }
}


So that It'll display more than one message for a new subs, and returning subs??

Re: (Twitch) Sub alert with mulitple messages [Re: Bestpeff] #258069 07/06/16 04:07 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
I've noticed you've been asking for a lot of help and that's fine and dandy. However, this is extremely basic and you should know how to do this.

Code:
elseif { do action1 | do action2 }


or

Code:
elseif {
  do action1
  do action2
}


twitter @keyeslol
Re: (Twitch) Sub alert with mulitple messages [Re: keyeslol] #258113 10/06/16 05:34 PM
Joined: Jun 2016
Posts: 1
N
NoKz Offline
Mostly harmless
Offline
Mostly harmless
N
Joined: Jun 2016
Posts: 1
Here's a sample of what I've been using.

Code:
on *:text:*subscribed*:#:{
  if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
  elseif ($nick == twitchnotify) && ( $4 == while ) halt
  ; Custom New Sub Message
  elseif ($nick == twitchnotify) && ( $4 == $null ) { msg $chan MESSAGE  }
  ; Custom Message Per User
  elseif ($nick == twitchnotify) && ( $4 isnum ) && ( $1 = nokz ) { msg $chan MESSAGE }
  ; Custom Message For Months Subbed
  elseif ($nick == twitchnotify) && ( $4 > 5 ) && ( $4 < 12 ) { msg $chan MESSAGE } 
  elseif ($nick == twitchnotify) && ( $4 == 12 ) { msg $chan MESSAGE} 
  elseif ($nick == twitchnotify) && ( $4 > 12 ) && ( $4 < 18 ) { msg $chan MESSAGE }
  elseif ($nick == twitchnotify) && ( $4 > 17 ) && ( $4 < 20 ) { msg $chan MESSAGE }
  elseif ($nick == twitchnotify) && ( $4 > 19 ) && ( $4 < 24 ) { msg $chan MESSAGE }
}