|
|
| Author |
Message |
greg27 Lurker

Joined: 07 Oct 2006 Posts: 159 Location: Australia
|
Posted: Dec 13, 2007 3:40am Post subject: mysql irc bot |
|
|
| i'm looking for an irc bot which connects to a network and then listens for commands from a mysql database - does anyone know of such a bot? nothing mirc related please, this will be run on a linux system :] |
|
| Back to top |
|
 |
jared555 none

Joined: 11 Dec 2007 Posts: 4
|
Posted: Dec 13, 2007 8:02am Post subject: |
|
|
I highly doubt it is what you want but if no one else answers....
At one point I did this using psybnc and a php script. You just set up psybnc to pass the commands over to the php script which can look in the database for what you need. This would work with any language that can access mysql and accept command line arguments. |
|
| Back to top |
|
 |
Stefano Eleet

Joined: 03 Apr 2005 Posts: 528 Location: Beirut
|
Posted: Dec 13, 2007 6:29pm Post subject: |
|
|
| there was one on gnu site |
|
| Back to top |
|
 |
greg27 Lurker

Joined: 07 Oct 2006 Posts: 159 Location: Australia
|
Posted: Dec 14, 2007 11:54pm Post subject: |
|
|
| jared555 wrote: | I highly doubt it is what you want but if no one else answers....
At one point I did this using psybnc and a php script. You just set up psybnc to pass the commands over to the php script which can look in the database for what you need. This would work with any language that can access mysql and accept command line arguments. |
how do i set up psybnc to do this?
also, would it be possible to have a php file send commands to psybnc (such as a channel mode change) and then have the result (success/fail) sent back to the php script? |
|
| Back to top |
|
 |
Invisible Lurker

Joined: 26 Jul 2005 Posts: 191
|
Posted: Jan 09, 2008 10:10pm Post subject: |
|
|
| Actually the entire thing can be run through php/mysql using sockets... however I couldn't tell you the name of one. |
|
| Back to top |
|
 |
egg none

Joined: 30 Jan 2008 Posts: 1
|
Posted: Jan 30, 2008 10:44am Post subject: |
|
|
| Invisible wrote: | | Actually the entire thing can be run through php/mysql using sockets... however I couldn't tell you the name of one. |
You don't want to or you can't remember? |
|
| Back to top |
|
 |
|