Untitled
public text v1 · immutable if (strtolower(substr($msgwithoutident, 0, 8)) == 'botsnack')
{
$msgwithoutcommand = substr($msgwithoutident, 9, strlen($msgwithoutident)-9);
$vic = $msgwithoutcommand;
$att = $data->nick;
$botsnackre = array(
"$vic.": Thanks. :)"
);
$count = count($botsnackre);
srand(time());
$random = (rand()%$count);
$irc->message(SMARTIRC_TYPE_CHANNEL, $recip, $botsnackre[$random]);
}