mIRC Homepage
Posted By: Majeye Simple on text based off user script - 27/06/23 03:18 AM
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
  }
}
Posted By: Wims Re: Simple on text based off user script - 27/06/23 07:35 AM
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 /
Posted By: Wims Re: Simple on text based off user script - 27/06/23 03:59 PM
I misread your post the first time but you can still use it with a single nickname in %nicks
© mIRC Discussion Forums