anounce uploads irc

Started by Bjw, July 31, 2011, 06:26:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bjw

I tried the existing one but for some reason wouldn't work.The same for the radio.

I actually used your code for the radio and redid the block to suit my needs and it worked fine .When I used this code below it worked fine.

Of coarse I was probably screwing something up possibly in eggdrop or where ever.

I appreciate your radio code etc thanks :)

putyn

why don't you use the function that already exists ?

Bjw

the above does work just replace the local host ip with the server ip and all is good

Bjw

Thanks maybe he will spot this and give me a hand.I also have the old section I did for the signups .I will post it in case it can be converted for the v2 when he reads this hopefully.

   //bot announce signup
$bot['ip'] = "127.0.0.1"; // the ip of the bot
$bot['port'] = "port:)"; // your script listen port
$bot['password'] = "botpassword"; // password which you have set in script
$bot['message'] = "\00308,1New User \00309,1$wantusername has Just Signed up \00311,1 .:. URL: \0037,1 http://your_site_url/userdetails.php?id=$id \00311,1Current Users \00308,1 $arr[0]"; // your message

$fp = fsockopen($bot['ip'], $bot['port'], $errno, $errstr, 40);

if($fp)
{
fputs($fp, $bot['password'] . " " . $bot['message'] . "\n");
sleep(2);
fclose($fp);
}

//bot signup end

:)

Mindless

putyn made that mate and yes my server is Win X64.

Bjw

#1
ok got it figures out

in takesignup.php
//bot announce signup
     
$bot['ip'] = "YOUR SEVER IP"; // the ip of the bot
$bot['port'] = ""; // your script listen port
$bot['password'] = ""; // password which you have set in script
$bot['message'] = "\00308,1New User \00309,1$wantusername has Just Signed up \00311,1 .:. URL: \0037,1 http://twilighttorrents.net/userdetails.php?id=$id \00311,1Current Users \00308,1 $arr[0]"; // your message

$fp = fsockopen($bot['ip'], $bot['port'], $errno, $errstr, 40);

if($fp)
{
fputs($fp, $bot['password'] . " " . $bot['message'] . "\n");
sleep(2);
fclose($fp);
}

//bot signup end

in takeupload.php
    //irc announce uploads
$res = mysql_query("SELECT name FROM categories WHERE id=$catid") or sqlerr();
$arr = mysql_fetch_assoc($res);
$cat = $arr["name"];


$bot['ip'] = "YOUR SERVER IP"; // the ip of the bot spamming the upload details
$bot['port'] = ""; // your script listen port on the bot
$bot['password'] = "twilightbot"; // password which you have set in the ftp script
$bot['message_line_1'] ="\002\0034,1 New Torrent Uploaded:\0039,1 $torrent";
$bot['message_line_2'] = "\002\00311,1Category $cat Size:".chr(1)." ".mksize($totallen).chr(1)."";
$bot['message_line_3'] = "\002\0038,1URL: http://twilighttorrents.net/details.php?id=$id";

$fp = fsockopen($bot['ip'], $bot['port'], $errno, $errstr, 40);
if($fp)
{
sleep(5);
fputs($fp, $bot['password'] . " " . $bot['message_line_1'] . "\n");
sleep(3);
fputs($fp, $bot['password'] . " " . $bot['message_line_2'] . "\n");
sleep(3);
fputs($fp, $bot['password'] . " " . $bot['message_line_3'] . "\n");
sleep(3);

fclose($fp);
}

//end announce Irc

you need to enter your server ip
your port
and your bots  password