mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Sep 2016
Posts: 34
F
Ameglian cow
Offline
Ameglian cow
F
Joined: Sep 2016
Posts: 34
@keyeslol

Oh, I see - I missed that. Thank you. smile

Joined: Sep 2016
Posts: 34
F
Ameglian cow
Offline
Ameglian cow
F
Joined: Sep 2016
Posts: 34
Hey,

I updated to:
Code:
on *:text:*just subscribed*:#CHANNELNAME: { 
  if  ($chan == #CHANNELNAME && ($nick == twitchnotify) { 
    inc -u120 %spam.sub [ $+ [ $nick ] ]
    if (%spam.sub [ $+ [ $nick ] ] == 2) {
      msg $chan   DOUBLE SUB HYPE!!!! $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 3) {
      msg $chan   TRIPLE SUB!!!! SUB TRAIN!!!! CHOO CHOO ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 4) {
      msg $chan   THE QUADDDD!! Kreygasm ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 5) {
      msg $chan   PENTASUBBB!!!! DAT SUB TRAIINN CHOO CHOO ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 6) {
      msg $chan   6 SUBS! Dat Sub Train Kreygasm ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 7) {
      msg $chan   7 SUBS! GOGOGOGOGO!!! Kreygasm ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 8) {
      msg $chan   8 SUBS! GOGOGOGOGO!!! Kreygasm ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 9) {
      msg $chan   9 SUBS! OMGWTF Kreygasm ~ $1 just subbed!!   
    }
    elseif (%spam.sub [ $+ [ $nick ] ] == 10) {
      msg $chan   10 SUBS!!!!! Sub Train has reached it's destination!!!! ~ $1 just subbed!!   
      set %spam.sub 0
    }
    else {
      var %item = $rand(1,5)
      if (%item == 1) msg $chan   $1 subscribed!!!    $+
      if (%item == 2) msg $chan   NEW SUB: $1 $+ !!!    $+
      if (%item == 3) msg $chan   Thanks for subscribing, $1 $+ !!!    $+
      if (%item == 4) msg $chan   SUB HYPE!!! $1 just subscribed!!!    $+
      if (%item == 5) msg $chan   WELCOME $1 $+ !!!    $+
    }
  }
}


But problem is that it doesn't send message anymore. It did work before with "if ($nick == twitchnotify)" until I added "if ($chan == #CHANNELNAME && ($nick == twitchnotify)".


Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
Code:
on 1:text:*just subscribed*:#keyeslol: { 
  if  ($chan == #keyeslol && ($nick == twitchnotify)


I have this running in a channel and it works 100%.


twitter @keyeslol
Joined: Sep 2016
Posts: 34
F
Ameglian cow
Offline
Ameglian cow
F
Joined: Sep 2016
Posts: 34
Originally Posted By: keyeslol
Code:
on 1:text:*just subscribed*:#keyeslol: { 
  if  ($chan == #keyeslol && ($nick == twitchnotify)


I have this running in a channel and it works 100%.


Weird... Still no message from me. But don't you miss one )? If there's two (


Joined: Sep 2016
Posts: 34
F
Ameglian cow
Offline
Ameglian cow
F
Joined: Sep 2016
Posts: 34
As I guessed, I added ) to the code and it worked.

Code:
if  ($chan == #sco && ($nick == twitchnotify))

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
this is why i shouldnt code without coffee. I missed some ).

Code:
($chan == #sco) && ($nick == twitchnotify))


twitter @keyeslol
Page 2 of 2 1 2

Link Copied to Clipboard