listen 6543 script torrent.listen
set canal "#torrents"
proc torrent.listen {idx} {control $idx torrent.announce}
proc torrent.announce {idx args} {
global canal
set args [join $args]
putlog "$args"
if {[lindex [split $args] 0] != "PaSSwoRds"} {return 0}
set toutput [lrange [split $args] 1 end]
putquick "PRIVMSG $canal :$toutput"
}
putlog "### Torrent announcer loaded"
/* IRC notifs */
if ($site_config["IRCANNOUNCE"]) {
$bport = 6543; /// change this to what ever you set in your eggdrop for the announce to listen on
$bip = "66.90.118.18"; // this maybe your bot ip?? lol
$bot['message_line_1'] = chr(3)."2 Novo Torrent: (".chr(3)."10 $torrent".chr(3)."2 ) Size: (".chr(3)."10 $size ".chr(3)."2 ) Category: (".chr(3)."10 $cat ".chr(3)."2 ) Link: (".chr(3)."10 ".$site_config['SITEURL']."/details.php?id=$id&hit=1".chr(3)."2 )rn";
$fp = fsockopen($site_config["ANNOUNCEIP"],$bport,$errno,$errstr,5);
if($fp) {
sleep(2);
fwrite($fp, "PaSSwoRds" . " " . $bot['message_line_1'] . "n");
fclose($fp);
}
}
// End of IRC-Annnounce and IRC-Formatting
"wiipt, post: 84706":Warning: fsockopen() [[url="http://osamigos.com/function.fsockopen"]function.fsockopen[/url]]: unable to connect to 66.90.118.18:0 (Failed to parse address "66.90.118.18") in /home/osamig/public_html/torrents-upload.php on line 25![]()
torrents-upload.php
/* IRC notifs */
if ($site_config["IRCANNOUNCE"]) {
$bport = 6543; /// change this to what ever you set in your eggdrop for the announce to listen on
$bip = site_config["ANNOUNCEIP"]; // this maybe your bot ip?? lol
$bot['message_line_1'] = chr(3)."2 Novo Torrent: (".chr(3)."10 $torrent".chr(3)."2 ) Size: (".chr(3)."10 $size ".chr(3)."2 ) Category: (".chr(3)."10 $cat ".chr(3)."2 ) Link: (".chr(3)."10 ".$site_config['SITEURL']."/details.php?id=$id&hit=1".chr(3)."2 )rn";
$fp = fsockopen($bip,$bport,$errno,$errstr,5);
if($fp) {
sleep(2);
fwrite($fp, "PaSSwoRds" . " " . $bot['message_line_1'] . "n");
fclose($fp);
}
}
// End of IRC-Annnounce and IRC-Formatting
"tiloup, post: 84701":dont really need that tech, the months counter thing only shows the current monthOops! or put this line please!? :blink:
//===clear funds after one month
$secs = date('t') * 86400;
$dt = sqlesc(get_date_time(gmtime() - $secs));
SQL_Query_exec("DELETE FROM funds WHERE added < $dt");
//===end
//Donor count down
if ($user[donor] && $CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)
to
//Donor count down
if (($user[donor] == 'yes') && ($CURUSER[id] == $user[id] || $CURUSER["class"] >= 6))
$site_config["ANNOUNCEPORT"]is [size=12px]6543[/size]
listen 6543 script torrent.listen
set canal "#torrents"
proc torrent.listen {idx} {control $idx torrent.announce}
proc torrent.announce {idx args} {
global canal
set args [join $args]
putlog "$args"
if {[lindex [split $args] 0] != "PaSSwoRds"} {return 0}
set toutput [lrange [split $args] 1 end]
putquick "PRIVMSG $canal :$toutput"
}
putlog "### Torrent announcer loaded"
ps ux
in my case show something like
ttsbots 106 0.0 0.2 22636 9712 ? Sl Aug09 0:25 ./eggdrop eggdrop.conf
then
kill 106
cd eggdrop
./eggdrop eggdrop.conf
//Setup IRC Announcer
$IRCANNOUNCE = true;
$ANNOUNCEIP = "66.90.118.18"; //Change this to your eggdrop IP
$ANNOUNCEPORT= "3333"; //Change this to your eggdrop listen port