I made a little script (see below) where you kan !kiss somebody in the channel. The only problem is, that the "$nick" and "$arg" variables are not be converted to the nickname and the arguments. For example:
<testbot> $arg gets a kiss from $nick
that should be:
<testbot> personB gets a kiss from personA (in which "personA" is the person who gave the command and "personB" is the argument given)
How can I do that??
btw: i replaced the "[" and "]" by "(" and ")" to prevent forum error
Code: Select all
set rankiss {
"$nick blows $arg a kiss! :smile:"
"$arg gets a kiss from $nick"
"After some hugging, $nick kisses $arg"
}
proc pub_kiss {nick uhost hand chan $rankiss} {
global rankiss
set lengthstr { rand (length $rankiss) }
putchan $chan "[lindex $rankiss (rand (llength $rankiss)))"
return 1
}
bind pub - !kiss pub_kiss