Help about Bot id

186
.
Please help me.
What is bot id and how can I get the bot id?
I want to set bot for shoutbox but I dont know about bot id.please
help about it.
(Johncns 4.4.0)
.
Like this code?
$idbot = 2;
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `bot`;"), 0);
if($total > 0) {
$req = mysql_query("SELECT * FROM `bot` ORDER BY `id` LIMIT $total");
while ($check = mysql_fetch_assoc($req)) {
for ($i=1; $i<=$total; $i++) {
$key = strtolower($check['key']);
$txtcheck = strtolower($msg);
$txt = $check['text'];
$txt1 = ($check['txt1'] ? $check['txt1'] : $txt);
$txt2 = ($check['txt2'] ? $check['txt2'] : $txt);
$txt3 = ($check['txt3'] ? $check['txt3'] : $txt);
$txt4 = ($check['txt4'] ? $check['txt4'] : $txt);
$txt5 = ($check['txt5'] ? $check['txt5'] : $txt);
$list = array($txt, $txt1, $txt2, $txt3, $txt4, $txt5);
$rtxt = rand(0, 5);
if(preg_match('|'.$key.'|', $txtcheck)) {
$bot = $list[$rtxt];
}
}
}
$bot = str_replace('{user}', $login, $bot);
$bot = str_replace('{text}', $msg, $bot);
$bot = str_replace('{reply}', '[quote='.$login.']'.$msg.'[/quote]', $bot);
$time = time()+5;
if($bot) {
mysql_query("INSERT INTO `guest` SET
`adm` = '$admset',
`time` = '$time',
`user_id` = '$idbot',
`name` = 'BOT',
`text` = '" . mysql_real_escape_string($bot) . "',
`ip` = '0000',
`browser` = 'cyberloft'
");
}
}
.
here $idbot = 2
what is this '2' ?
is it any number?
.
2 is ID user and change ur id user ..
Всего: 4