Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

PHP IRC Bot

 
Post new topic   Reply to topic    SearchIRC Forum Index -> IRC Scripts
Author Message
darkwarrior
Lurker
Lurker


Joined: 02 Aug 2008
Posts: 172

PostPosted: Oct 29, 2008 3:12pm    Post subject: PHP IRC Bot Reply with quote

Greetings all. I am looking for a simple, free open source PHP IRC Bot that has a basic web panel. As an example, I visit http://mysite.com/bot.php and then there's a few different administration tasks I can perform, such as "Change Nickname" where I enter in a nickname, click submit, and then the Bot will do /nick Newnickname, and even a "Join Channel" where I type in a channel, and the bot will /join #channel ... I basically just need something like that that I can expand off of to build some additional features for my IRC Network.

I actually know how to get the php bot to connect and listen to commands on IRC, but I don't know how I'd make it communicate with the web. So, if anyone knows where I can find something along these lines, doesn't have to be exactly what I asked, at least a php bot that has a web panel that can make it perform commands on IRC.
Back to top
PingBad
Guru
Guru


Joined: 05 Feb 2005
Posts: 2099
Location: New Zealand

PostPosted: Oct 29, 2008 4:29pm    Post subject: Reply with quote

you're more than likely going to need a listening socket or use of DDE/DCOM for you to be able to interface with the bot in realtime while still having it on IRC (I'm assuming you're running your bot's script as a shell script - ie: [user@host ~]$ ./bot.php - as opposed to a web page url)
Back to top
zeke
Idler
Idler


Joined: 04 Oct 2003
Posts: 325

PostPosted: Oct 29, 2008 5:12pm    Post subject: Reply with quote

SmartIRC is a PHP class which I have used several times for various bots. One could theoretically use a SQL database or a text file to pass information to a bot - it would be laggy, since it wouldn't make sense to poll SQL every second. Maybe every 20 or so?

Web panel passes request to SQL table, bot processes pending commands and deletes them, perhaps?

Bot would also update things regularly also - would prevent needing to pass commands constantly and wait for a response.

It would still be particularly laggy if the web client was waiting for responses from the bot..
Back to top
greg27
Lurker
Lurker


Joined: 07 Oct 2006
Posts: 179
Location: Australia

PostPosted: Oct 29, 2008 5:19pm    Post subject: Reply with quote

take a look at this - i believe it does what zeke suggested and queries a mysql database every x seconds to check for new commands. it looks as though the project may have been abandoned, but it could provide a good starting point for you.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> IRC Scripts All times are GMT - 6 Hours
Page 1 of 1

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer