[Python] IRC bot framework

Talk about any languages right here. Share and discuss source, but don't expect your homework to be done for you.

[Python] IRC bot framework

Postby module0000 » Wed Dec 09, 2009 6:34 am

IRC bot framework(ircpm.py) and example bot (nubot.py)

This framework handles the majority of incoming traffic processing in IRC - making bot-writing very easy.

The bot included includes several features:

1 ) MYSQL channel logging
2 ) MYSQL quote functionality
3 ) MYSQL help response(ie dynamic)
4 ) MYSQL statement execution(edit/view the database via IRC)
5 ) Multiple owners(based on host) with bot->owner broadcast chat
6 ) IRC stream echo'ing(ie relaying the raw IRC stream to <anyone>)
7 ) Multiple bans(based on host)
8 ) "!enable"/"!disable" toggling of most features

Get the framework and example bot at:
Make sure you get "nubot.cfg", that's the config file the example bot depends on to start.
http://shackhost.net/~hgrubbs/code/ircpm

Work in progress on the bot is to add MYSQL-driven custom macro's to extend the bot without editing the source
module0000
n00b
 
Posts: 13
Joined: Fri Nov 06, 2009 3:42 am

Re: [Python] IRC bot framework

Postby module0000 » Wed Dec 16, 2009 3:58 am

updates:

1) Framework now supports op/deop/voice/devoice/kick/topic functions

2) Example bot support ?key style queries eg "?foo" returns "foo: bar" to channel/PM

3) "queries" toggle added to allow !enable/!disable queries (to disable ?foo-style queries)
module0000
n00b
 
Posts: 13
Joined: Fri Nov 06, 2009 3:42 am

Re: [Python] IRC bot framework

Postby IceDane » Wed Dec 16, 2009 10:58 am

Sounds pretty cool dude. Keep it up.
I hope I pissed you off.

Disce aut Discede
Ex scientia vera

Code: Select all
while( flamingPeople(ON_INTERNET) )
{
   ePenis++;
}
User avatar
IceDane
Because I Can
 
Posts: 2652
Joined: Wed May 12, 2004 9:25 am
Location: In your memory, controlling your EIPs


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests