mIRC Home    About    Download    Register    News    Help

Print Thread
[Twitch] Welcome new Subscribers #258448 04/07/16 02:30 PM
Joined: Jun 2014
Posts: 77
K
Khonor Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2014
Posts: 77
Hi all,


I'm looking for the way the new subscriber command is executed only when the owner of the channel is live and not when doing Host another channel.

Any help or suggestion is welcome and grateful.



Quote:
on 1:TEXT:*subscribed*:#:{
if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
elseif ($nick == twitchnotify) { /msg # ˇˇWelcome $1 $+ !! Thanks for subscribe! }
}



_______________________________

Don't forget to follow me on Twitch.

Last edited by Khonor; 04/07/16 03:11 PM.
Re: [Twitch] Welcome new Subscribers [Re: Khonor] #258449 04/07/16 07:12 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Try use this:

Code:
on 1:TEXT:*subscribed*:#:{
if (ENTER-HERE-THE-OWNER-NICK !ison $chan) || ($nick !== twitchnotify) || ($istok($1-,subscribed to,32)) { return }
msg $chan ˇˇWelcome $1 $+ !! Thanks for subscribe!
}

Re: [Twitch] Welcome new Subscribers [Re: westor] #258450 04/07/16 10:06 PM
Joined: Jun 2014
Posts: 77
K
Khonor Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2014
Posts: 77
Hey @westor,

Thanks very much for your help! smile