PDA

View Full Version : IRC post bot - No eggdrop


PowerBlade
07-31-2002, 10:00 PM
This is the release version of the irc bot - no eggdrop.
Originally created by me, PowerBlade, and distributed by Dymo.
Installer and admin panel created by Dymo.

If you have an older version of this bot, it's enough to replace the irc.php file located inside the archive.

New in this version:

- Made a debug function.
- Added 2 switches in the irc.php file

To enable the debug mode, simply go into the file irc.php and turn
$debugging = FALSE;
into
$debugging = TRUE;
This will write the debug text into the page after you submitted the post. Beware the page will change quickly to go to your post, so you have to press the STOP button on your browser.
The other switch in irc.php is the
$amountOfLines = 6;
If you ever experience it takes forever (30 seconds) to submit the post, and the bot doesn't join the irc channel, then try put this down by 1 (5). If it's still the same, try 1 more down, until it stops.
At this point it should work.

I will from this version make full support on this script.
If you want to recieve support from me, email me on powerblade@mail.dk with the content of the debug mode.

That's all. Hope you people enjoy it.

PowerBlade
Admin of Gamer-Networks (http://www.gamer-networks.com/forums/)
Feel free to visit our irc channel on irc.d2network.com:6667
#d2network, #wc3network, #gamer-networks

Admin
08-01-2002, 06:17 PM
Poll removed, no need for one.

Velocd
08-01-2002, 08:21 PM
The reason I didn't use the egg-drop method is because I heard of the performance decrease you will suffer UNLESS you have a dedicated server. So will this have performance losses as well unless you have a dedicated server? Because I don't have one..

Oh, and to make sure I'm not totally spilling out random questions, this hack enables your forum home to have a "who's in IRC chat", correct?

Ryangel
08-02-2002, 12:51 AM
hmm....interesting. but what does this do?

PowerBlade
08-02-2002, 04:27 AM
What this hack does is connecting to the irc server every time a new post or a reply has been made (configurable) in specific forums
you can choose up to 3 channels different channels to join depending on the forum the post was made in
The bot then connects to irc, joins the channel, tell people in there a new post was made, and quit's again.
When you click the submit button the server must connect, send message, quit to the irc server, before the user can continue to his post.
So this will be a bit longer.
The nice part about eggdrop (if you want to) is the script simply needs to throw the data in the db, and a dedicated bot reads it from time to time. This is much faster than this, but this is possible on non-dedicated server.

btw.. this does not add the "who is in irc chat"

Mr_P
08-02-2002, 04:52 AM
dont add anything - tried it a few times and still nothing shows up.
I have tried it on numerous networks and even on me own network (unreal on Linux) and nothing.

Floris
08-02-2002, 08:32 AM
I think it is very annoying that it joins/parts everytime. Why not let it use mIRC dde sessions? This way one could put up an irc client on their dsl/cable/dedicated line and just let it idle and display new stuff.

Mr_P
08-02-2002, 11:35 AM
Originally posted by xiphoid
I think it is very annoying that it joins/parts everytime. Why not let it use mIRC dde sessions? This way one could put up an irc client on their dsl/cable/dedicated line and just let it idle and display new stuff.

Can this only be used on certain hosts : as i have tried on a few and yet aint got nothing to show.

The hack is installed correct but when i make new post i see nothing in mirc even though i have entered the correct details in admin cp.

Velocd
08-03-2002, 06:09 PM
Originally posted by PowerBlade
btw.. this does not add the "who is in irc chat"

damn :ermm:

I need a new irc who's-chatting hack that gets people using mIRC chatting also :p ...just no eggdrop...but anyway~

BigJohnson
08-03-2002, 07:26 PM
Can u add the changes needed for the NEwthread and reply PHP files. I dont want to just overright them on my server because i hacked those files. Please have instructions thanks.

PowerBlade
08-04-2002, 11:55 AM
The text to insert is marked by
/* IRC NOTICE HACK BY POWERBLADE */

/* END IRC NOTICE HACK */

but not in newreply.php.

That's why i uploaded a new version beneath

The reason for not using dde sessions, is because i haven't heard about it.
Im not a hardcore irc user, i was just making this as a request, and i thought i would post it here, so others can get use of it.

meandme
08-06-2002, 06:02 PM
Hi,

Great hack, would really love to have this, but why do i get a "Connection refused (111)" error message when I cal irc.php in my browser.

I already contacted my host, they said they dont block anything.

Great

Takara
08-07-2002, 06:57 AM
Originally posted by xiphoid
I think it is very annoying that it joins/parts everytime. Why not let it use mIRC dde sessions? This way one could put up an irc client on their dsl/cable/dedicated line and just let it idle and display new stuff.

*unlurks for a moment*

I believe you are slightly mistaken about the way DDE works. DDE is basically a set of API function built into mirc, not a server. There would be no way for a php script, on another server, to communicate with mirc (or for php to communicate with mirc at all) to relay these messages.

You could however have the script simply message a user with a small script built into your client of choice. Then that message could be relayed to the chan.

PowerBlade
08-08-2002, 07:55 AM
The connection refused is because the port is blocked on the computer it tries to connect to.
This can be because of a firewall or other similar software.
If it's windows xp try see if the built in firewall is disabled, or add the port to the exclude list

Barret
08-08-2002, 11:34 PM
I`m lost now :(
What to put at the last few lines?
Under this.......IRC Notify Bot Identity settings (all settings required):?

Barret
08-09-2002, 02:01 AM
Ill keep an eye on this and hope I can get it working!

zefman
08-11-2002, 08:32 AM
it is an excellent basis for me. I adapted the code to my needs: to communicate a notification of messages on a P2P soft that integrates a chat like IRC.
the result is not quiter the same that the hack given here but I improved some small things.

of which essentially the pause made before the closing of the socket; I put a sleep () rather than a loop that saturated my server.
thank you for this hack because it helped me well :=)

(sorry for English, thank you to powertranslator lol)

Mickie D
10-07-2002, 03:40 PM
Fatal error: Call to undefined function: phperror_reporting() in /usr/local/plesk/apache/vhosts/world-of-digital.com/httpdocs/forums/admin/ircadmin.php on line 1

i get that error when trying to access the page from the admin section :(

PowerBlade
10-07-2002, 06:28 PM
I looked in the ircadmin.php file and found out the file needs line seperators. And because of that the
<?php
error_reporting(7);

was melted together as <?phperror_reporting()
Simply change it back to the above example, and that should fix your problem.

Mike11212
10-09-2002, 07:39 PM
so if I get error
Connection refused (111)
that means my server is blocking the ports i am trying to use to connect to irc?

Mike11212
10-09-2002, 11:06 PM
ok i got it to work but it doesnt post anything in the channel. the OPS on the server say that it connects and then just disconnects

PowerBlade
10-11-2002, 07:24 AM
This can be because the delay it not high enough. If the bot sends the commands too fast to the server, the server simply ignore it. So i made a for() loop to make it wait a second or so in the ircbot.php

There should be a configuration directive inside the file.

|-Last-Spirit-|
10-18-2002, 02:05 PM
Could someone create a "install" step by step explenationcause I don't know what to do actually.... I can't run any php installers as I as most users have other hacks installed..

PowerBlade
11-14-2002, 05:06 PM
Im sorry, but i dont have any time at all to write a step by step guide. When i get time, and if enough shows interest, i will make it. But not now.. Sorry.
My advice is to install hacks, you should at least have a little knowledge about php and what specific things do.

venomous
04-15-2003, 01:12 PM
How install this hack on vbulletin 2.2.9?
Thanks in advance :)

CHeeKY
04-15-2003, 08:24 PM
So far no joy on this on new thread nothing happens at all and on reply i get a timeout error.
Help would be appreciated though.