mIRC Home    About    Download    Register    News    Help

Print Thread
Noticing a message #246454 12/06/14 12:01 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I made a script where then jtv notices me "SPECIALUSER [name] subscriber"
Code:
on *:NOTICE:SPECIALUSER & subscriber:?:{
  if ($read(reglist.txt,nw,$2) return
  msg #mark_paintball Welcome $2 $+ ! looks like you're not on the regular list! I am adding you now :)
  write reglist.txt $nick
}

The thing is when it gets noticed here it does not add them to the list or do the message. IS there something wrong in my code?


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Noticing a message [Re: judge2020] #246455 12/06/14 12:33 PM
Joined: Jan 2004
Posts: 1,302
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,302
You're missing a parenthesis in the if statement, there should be errors in your status window about it.

Re: Noticing a message [Re: Loki12583] #246456 12/06/14 01:12 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I fixed the parenthesis (i didn't get an error in status box o_o) but it still isn't triggering the notice.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Noticing a message [Re: judge2020] #246458 12/06/14 02:10 PM
Joined: Apr 2014
Posts: 191
B
blessing Offline
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
Are you sure twitch supports notice?
Maybe you need on *:TEXT ?

Re: Noticing a message [Re: blessing] #246462 12/06/14 03:05 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
The window i get it from is a query window, Unless that isn't a notice then my script isn't triggering


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Noticing a message [Re: judge2020] #246463 12/06/14 03:07 PM
Joined: Apr 2014
Posts: 191
B
blessing Offline
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
query window is msg, not notice.
You need on *:TEXT then.

Re: Noticing a message [Re: blessing] #246464 12/06/14 03:50 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Thanks, working!


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Noticing a message [Re: judge2020] #246466 12/06/14 04:35 PM
Joined: Mar 2014
Posts: 52
P
patrickplays Offline
Babel fish
Offline
Babel fish
P
Joined: Mar 2014
Posts: 52
you need to write $2 into your reglist. $nick will write jtv

Re: Noticing a message [Re: patrickplays] #246467 12/06/14 04:41 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Yes i fixed that :P


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball