mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2014
Posts: 107
M
Majeye Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
Trying to figure out how to get the following script to work based off a single user only. Don't want it to be a global command everyone can trigger..

Just want a single user to post and the bot recognizes the user and then posts based off theirs.

Something like (but can't get it to work properly...


Code
on $*:text:/!play :#: {
  var %nicks = nekkrolepsy {
    msg $chan !play
  }
}

Joined: Jul 2006
Posts: 4,151
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,151
on $*:text:/!play :#: {
var %nicks = nekkrolepsy anothernick etc
if ($istok(%nicks,$nick,32)) {
msg $chan !play
}
}
I left it as is, but your regex pattern is missing the ending delimiter /


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2006
Posts: 4,151
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,151
I misread your post the first time but you can still use it with a single nickname in %nicks


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard