Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] IRC Announce for Eggdrop
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2012-08-10 16:47:41
your bot is listening on the wrong port.. they have to match LOL





//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

Unknown User
2012-08-10 17:27:39
File TCL

# If you would like the bot to listen for users and bots in separate ports,

# use the following format.

#

# listen 3333 bots

# listen 4444 users

# listen 6543 script xxGRAB

# If you wish to use only one port, use this format:

listen 6665 all


then you can tell me what is the right port to connect to the bot?
Unknown User
2012-08-10 20:49:16
i dont know what script you trying to use.. there is like 4 of them just in this topic.. if dont know the code cant help.. I cant read minds
Unknown User
2012-08-10 20:53:43
I tried to use the second and me the same error

1



Credit goes to FLASH, this is all his code!

For those who used it in 1.x, the same code works fine in 2.x.





Here's the TCL (not using the one from 1.x, made my own using eggdrop's TCL instead of pure TCL sockets).

Save as tcl and load into eggdrop... if you don't know how, you probably shouldn't be trying to run this....

listen 6543 script xxGRAB #CHANGE THIS TO YOUR EGGDROP'S LISTEN PORT!

proc xxGRAB { NewIDX } {



control $NewIDX torrent:CTL

putlog "TORRENT: Received connection $NewIDX"

}



proc torrent:CTL { IDX Args } {

putlog "TORRENT: $Args"

putserv "PRIVMSG #My.Channel :$Args"

}



putlog "### Torrent announcer loaded"







Open up backend/config.php, and the bottom, add:

//Setup IRC Announcer

$IRCANNOUNCE = true;

$ANNOUNCEIP = "1.2.3.4"; //Change this to your eggdrop IP

$ANNOUNCEPORT= "1234"; //Change this to your eggdrop listen port







In torrents-upload.php, find:

//END SCRAPE



write_log("Torrent $id ($name) was Uploaded by $CURUSER[username]");



//insert email notif, irc, req notif, etc here







Below, add:

// start irc announce hack v1.0 by FLASH  

if ($IRCANNOUNCE)

{

$rs = mysql_query(" SELECT * FROM categories WHERE id='" . intval($catid) . "' LIMIT 1");

$cat_details = mysql_fetch_assoc($rs);

$msg_bt = chr(3)."2 New Torrent: (".chr(3)."10 $torrent".chr(3)."2 ) Size: (".chr(3)."10 ".mksize($torrentsize).chr(3)."2 )

Category: (".chr(3)."10 ". $cat_details["parent_cat"].": ". $cat_details["name"].chr(3)."2 )  Link: (".chr(3)."10 {$site_config['SITEURL']}/torrents-details.php?id=$id&hit=1".chr(3)."2 )rn";

$fs = fsockopen($ANNOUNCEIP, $ANNOUNCEPORT, $errno, $errstr);

if($fs) {

          sleep(2);

          fwrite($fs, $msg_bt);        

          fclose($fs);                        

               }

}

//end irc announce hack v1.0 by FLASH



Dont forget to edit where it says to...



And voila, your IRC announce works again! I've modified the code to NOT show the uploader's name, I changed the colors, and I added a sleep(2) delay since eggdrop's sockets are slower.. we need to wait for the socket to open before sending out the data.



If you want the exact code from 1.x, just go get it from torrents-upload.php







2




config file

//Eggdrop IRC TCL

//Setup IRC Announcer

$site_config["IRCANNOUNCE"] = true;

$site_config["ANNOUNCEIP"] = "ip.eggdrop"; //Change this to your eggdrop IP

$site_config["ANNOUNCEPORT"] = "7698"; //Change this to your eggdrop listen port







uploand file

/* IRC notifs */

if ($site_config["IRCANNOUNCE"]) {

$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"],$site_config["ANNOUNCEPORT"],$errno,$errstr,5);

if($fp) {

sleep(2);

fwrite($fp, "PaSSwoRds" . " " . $bot['message_line_1'] . "n");

fclose($fp);

}

}

// End of IRC-Annnounce and IRC-Formatting





the my eggdrop

listen 7698 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"

[/code]
Unknown User
2012-08-10 21:51:38
ty that all looks right.. maybe your bot host has an firewall blocking that port?

and did you rehash the bot after changing the ports? i dcc chat my bot and then type .rehash but you can do the same thing in a shell, just kill the old .pid and then restart it

an config for an eggdrop is held in memory, the files themself on the server is not called unless an rehash or an reload of the eggdrop.

basically you can change it as many times as you want but will not take affect until you reload the scripts.

I have quite a few irc announces on my site but its also an dedicated server so i setup an shell account on my main sites server for my bots.

demo code in an shell you help you



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


to restart it
Unknown User
2012-08-11 14:09:47
yes I've reset the bot but still not provide

Eggdrop v1.6.19 © 1997 Robey Pointer © 2008 Eggheads

[14:55] --- Loading eggdrop v1.6.19 (Sat Aug 11 2012)

[14:55] Listening at telnet port 6669 (all).

[14:55] Module loaded: dns

[14:55] Module loaded: channels

[14:55] Module loaded: server

[14:55] Module loaded: ctcp

[14:55] Module loaded: irc

[14:55] Module loaded: notes    (with lang support)

[14:55] Module loaded: console  (with lang support)

[14:55] Module loaded: blowfish

[14:55] Module loaded: uptime

[14:55] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).

[14:55] use '.help userinfo' for commands.

[14:55] ### Torrent announcer loaded

[14:55] ### Torrent announcer loaded

[14:55] hahaha TCL by NOTEBOOK - vIRCio.com.br is loaded.

[14:55] BotCall -=> Loaded.

[14:55] *Auto Welcome Script* by *Rana Usman* (www.ranausman.tk) has been su

ccessfully LOADED

[14:55] Userfile loaded, unpacking...

[14:55] === OsAmigos: 2 channels, 1 users.

I detect OsAmigos already running from this directory.

If this is incorrect, erase the 'OsAmigos/pid.OsAmigos'
Unknown User
2012-08-11 14:13:31
2 things i see

I detect OsAmigos already running from this directory..<-- you did not kill the bot 1st to the reload is not taking affect..

2 of ### Torrent announcer loaded lol.. cant bind the same process to different ports..

remove 1 of the loads of that above and kill the bot then restart it.
Unknown User
2012-08-11 15:15:59
I think now is good but still does not give

Quote:
osamigos@osamigos.tuxsp.eu [~/eggdrops]# ps xPID TTY  STAT   TIME COMMAND

6975 ?    S  0:00 sshd: osamigos@pts/74

6982 pts/74   Ss+    0:00 -bash

8011 ?    S  0:00 sshd: osamigos@notty

8012 ?    Ss 0:00 /usr/libexec/openssh/sftp-server

18320 ?    S  0:00 sshd: osamigos@notty

18321 ?    Ss 0:00 /usr/libexec/openssh/sftp-server

19768 ?    S  0:00 sshd: osamigos@pts/75

19776 pts/75   Rs 0:00 -bash

20287 pts/75   Sl 0:00 ./eggdrop -m OsAmigos.conf

20524 ?    S  0:00 sshd: osamigos@notty

20525 ?    Ss 0:00 /usr/libexec/openssh/sftp-server

20555 pts/75   R+ 0:00 ps x

osamigos@osamigos.tuxsp.eu [~/eggdrops]# kill -9 20287

osamigos@osamigos.tuxsp.eu [~/eggdrops]# ./eggdrop -m OsAmigos.conf

Eggdrop v1.6.19 © 1997 Robey Pointer © 2008 Eggheads

[16:00] --- Loading eggdrop v1.6.19 (Sat Aug 11 2012)

[16:00] Listening at telnet port 6665 (all).

[16:00] Module loaded: dns

[16:00] Module loaded: channels

[16:00] Module loaded: server

[16:00] Module loaded: ctcp

[16:00] Module loaded: irc

[16:00] Module loaded: notes    (with lang support)

[16:00] Module loaded: console  (with lang support)

[16:00] Module loaded: blowfish

[16:00] Module loaded: uptime

[16:00] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).

[16:00] use '.help userinfo' for commands.

[16:00] ### Torrent announcer loaded

[16:00] hahaha TCL by NOTEBOOK - vIRCio.com.br is loaded.

[16:00] BotCall -=> Loaded.

[16:00] *Auto Welcome Script* by *Rana Usman* (www.ranausman.tk) has been su

ccessfully LOADED

[16:00] Userfile loaded, unpacking...

USERFILE ALREADY EXISTS (drop the '-m')

[16:00] === OsAmigos: 2 channels, 1 users.

Launched into the background  (pid: 21299)

osamigos@osamigos.tuxsp.eu [~/eggdrops]#

torrents.tcl

Quote:
listen 6543 script xxGRAB

proc xxGRAB { NewIDX } {

control $NewIDX torrent:CTL

putlog "TORRENT: Received connection $NewIDX"

}

proc torrent:CTL { IDX Args } {

putlog "TORRENT: $Args"

putserv "PRIVMSG #My.Channel :$Args"

}

putlog "### Torrent announcer loaded"

OsAmigos.conf

Quote:
# If you would like the bot to listen for users and bots in separate ports,# use the following format.

#

# listen 3333 bots

# listen 4444 users

# listen 6543 script xxGRAB

# If you wish to use only one port, use this format:

listen 6665 all
Unknown User
2012-08-11 20:09:25
humm you sure

$site_config["ANNOUNCEPORT"]
is [size=12px]6543[/size]

I would use




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"



above port and the 1 in torrents-upload.php has to match...... anyway you should read http://forum.egghelp.org

every post you make here has different info.. if the ports dont match then cant connect period...
Unknown User
2012-08-11 20:55:04
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 :blink:
Unknown User
2012-08-11 21:12:12
"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

change what ever you added before in torrents-upload.php to:



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

Unknown User
2012-08-11 21:20:26
Continues with the same error

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 30

Torr-Upload

/* 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["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"],$site_config["is 6543"],$errno,$errstr,5);

if($fp) {

sleep(2);

fwrite($fp, "PaSSwoRds" . " " . $bot['message_line_1'] . "n");

fclose($fp);



}

}

// End of IRC-Annnounce and IRC-Formatting
Unknown User
2012-08-11 21:57:29
ah i see .. change that to







/* 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

Unknown User
2012-08-11 22:03:26
the same error

Warning: fsockopen() [[url="http://osamigos.com/function.fsockopen"]function.fsockopen[/url]]: unable to connect to 66.90.118.18:6543 (Connection timed out) in /home/osamig/public_html/torrents-upload.php on line 30
Unknown User
2012-08-11 22:09:30
i really dont know what to tell you sounds like you got an firewall in the way or something

if



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"


this in in the file on the eggdrop and currently loaded it should work.. i use 1 close to it on my site but again my bot is on the same site as my site itself just an different account.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728