The Stupidest Zope Product Ever Written
IrcBot for Zope The Stupidest Zope Product Ever Written. WARNING: This product interacts dangerously with your live Zope ZODB, if you want to install and run this product you are completely crazy. If you've ever had a corrupted Data.fs file, then you know the possible pain you could be letting yourself in for. OK, upward, and onward. I have no idea if this will work under Windows, I seriously doubt it, don't bug me about making it work under windows if it doesn't. This is an IRC bot that is managed from Zope, and includes a mini-irc client in it that uses Javascript (I didn't spend too much time on this, its more of a proof of concept), to update things like user lists and the channel data. Also some of the framing is hosed :-) needs a bit of a tidy up, but, you use this to "Auth" users to the system, which is to assign them a user level, and allows them to interact with other plugins. Features are added to the bot via the Plugin system that's available, there are several plugins supplied by default that illustrate different things, most of them allow you to run multiple copies of them if you want to do slightly different things.
Authorised users can /dcc send files to the bot, and they will be stored in the User's Home Folder, they can fetch them later via http. DCC uploads are handled asychronously so they don't lock the bot up. The IrcUser class could be extended possibly with a Membership product to create a mini-portal where people can store and retrieve files, and display stuff from the UserInfo plugin. Basically I wanted to find out how to get There is an IrcRegistry created in the Root Folder. This is how the bot communicates with the IrcChannel you create. If you run into problems, you can delete the IrcChannel (which force quits the bot), and the delete the IrcRegistry which will prevent it from starting. You can then delete the product from lib/python/Products and you should be ok. Known bad things: ----------------- The Registry uses the Some of the interactions with ZODB don't quite work, there's a problem in particular with the Log Plugin, when it creates a new Days' Log. Restarting Zope if this happens cures all ills -- (some transaction gets committed or something), there shouldn't be any Conflict Errors left, but, with threads and networking who can tell reliably d8) There is a global event lock, so running more than one bot at once probably won't work the way you want it to, also pretty simple to fix. It doesn't detect when it gets disconnected from the server, (although adding a hook for the disconnection numerics is trivial to add, I'm just not that interested in going overboard). Some of the plugins could do with more management interface cleanup.
|
|
Available Releases
Version | Maturity | Platform | Released |
---|---|---|---|
0.0.3 | Development | 2001-04-30 08:26:08 | |
IrcBot-0_0_3.tgz (38 K) | Generic UNIX-like | ||
0.0.2 | Development | 2001-04-30 05:47:18 | |
IrcBot-0_0_2.tgz (38 K) | Generic UNIX-like | ||
0.0.1 | Development | 2001-04-30 05:33:52 | |
IrcBot-0_0_1.tgz (38 K) | Generic UNIX-like | ||
0.0.0 | Development | 2001-04-30 05:20:27 | |
IrcBot-0_0_0.tgz (38 K) | Generic UNIX-like |