mIRC Home    About    Download    Register    News    Help

Print Thread
#246454 12/06/14 12:01 PM
Joined: Mar 2014
Posts: 215
J
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
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You're missing a parenthesis in the if statement, there should be errors in your status window about it.

Joined: Mar 2014
Posts: 215
J
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
Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
Are you sure twitch supports notice?
Maybe you need on *:TEXT ?

Joined: Mar 2014
Posts: 215
J
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
Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
query window is msg, not notice.
You need on *:TEXT then.

Joined: Mar 2014
Posts: 215
J
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
Joined: Mar 2014
Posts: 52
P
Babel fish
Offline
Babel fish
P
Joined: Mar 2014
Posts: 52
you need to write $2 into your reglist. $nick will write jtv

Joined: Mar 2014
Posts: 215
J
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

Link Copied to Clipboard