PDA

View Full Version : IRC webpost alpha


EQ²
February 27, 2008, 03:33 PM
Basically this is Rich's fault, he said he thought it would be cool if you were able to have a webpost function for IRC. Some of you may already be familiar with the TeamSpeak WebPost (http://dedi2.eq2.co.uk/webpost), so this shouldn't seem like a particularly new idea.

The (alpha version) of the bot is running on my server at home and the webpost page is available at: http://dedi2.eq2.co.uk/ircwebpost/

I've basically just been getting the base functionality working, so it's not especially clever as yet. Some neat design features are:

Join multiple channels and automatically create the tables in the database for those channels
Use chat/me/notice to log a user's activity so a vague idea of idle time can be established
Queued SQL queries so that update rate to the db is not excessive, also remove duplicate entries pertaining to the same nick from the queue. Update the db with the queued queries every minute.
Basic remote control and admin ACL using /msg allows joining the bot to channels PERFORM function allowing Quakenet Q Auth or NickServ IDENTIFY

Some things I want to add:

Auto re-join channel on kick, auto-retry on ban
Log user modes/flags (such as voice, op) into the db so they can be viewed in the webpost
Better multi-server support so that a single bot can be used to monitor different channels per server
Better metadata support allowing friendly names for channels and the like
Support for other storage methods rather than just MySQL (ie. flat file)
Coloured topic support
Additional functions for the bot beyond webpost, such as set topic from web, auto-notify of events, etc

Anyone who wants to help who can code in c# is welcome to do so, just ask me for the source.

Mole
February 27, 2008, 05:42 PM
Thats awsome mumfrey! Nice one.

Prim£
February 27, 2008, 05:58 PM
Cheesh, all I asked was "you know how TS posts who is on the server on the web page? Just out of curiosity, is there any way that irc could be made to do the same? Just out of curiosiuty..." What do I get? "Basically it's all Rich's fault"

I had an idea ok! They don't happen very often, so when I get one I like to voice it just in case it's worth while !!!
Besides, was getting sick of opening irc only to find like, 3 people in there and they are the ones that don't chat, you know who you are......As I open the Web page 1st thing when I get in from work, thought it would be cool to have a little table like TS does to see if anyone is in there, but no, he has to take it 6 or 7 (or 10 ) levels higher than that...just because he is smart enough to do so......


But, none the less, very nice work as always Mumfrey, you are a coding hero....many acolades (insert spelling) should come your way :D It really does look very smart, really does...watch your head doesn't swell too much, you won't get out the house otherwise :P