All pastes #367088 Raw Edit

bot talker

public text v1 · immutable
#367088 ·published 2007-02-22 03:02 UTC
rendered paste body
on *:TEXT:!setchan *:?: {
if ($nick ison $2) && ($nick isop $2) {
if (!$2) { .msg $nick Proper format is !setchan #Channel }
else {
.set %channeltopost $2
.msg $nick Channel set to %channeltopost
}
}
else { .msg $nick You are not an OP on $2 }
}
on *:TEXT:!say *:?: { 
if (!$2) { .msg $nick Proper format is !say <message> }
elseif ($nick isop %channeltopost) { 
var %post = $2-
.msg %channeltopost %post
}
else { .msg $nick You are not an OP on %channeltopost }
} 
on *:TEXT:!act *:?: {
if (!$2) { .msg $nick Proper format is !act <message> }
elseif ($nick isop %channeltopost) { 
var %describe = $2-
.describe %channeltopost %describe
}
else { .msg $nick You are not an OP on %channeltopost }
}