The way Eric Gach does blogging.
SimpleIRC Update
SimpleIRC works! I’ve gotten the bot connecting to IRC and responding to commands. I’ve rewritten how the commands are handled and where they are stored. Previously, all commands, help text, usage, and access levels were stored in the module itself. I’ve made this to be more user friendly now by moving all of that to the database. I still need to do a little work on commands, but they are working! With all of that working, I can now start developing all the features of the bot. In case some of you missed it, or I forgot something, I’ll list all planned modules and features.
The bot will contain core features of account management (register, login, set access level, change password), channel management (join, part) as well as commands to show basic statistics about the bot, commands, and the system it’s running on. The stats will also extend to include an API for modules. This will enable each module to add a stats method that can be called by a specified command to the stats command.
Another module I’m adding to the bot is a Google search module. I will be rewriting this from the previous version which uses SOAP to use the new AJAX interface. The reason behind this is that Google is no longer releasing API keys required for SOAP. I’m not sure what effect this will have on the search module, but I’m hoping none.
I’ve also planned on adding a factoids module that will work similar to the one in the previous version. The new addition to this new version is that when using the bots nickname to trigger a factoid, it will also translate to perform commands if no factoid exists for that trigger. That means that saying “miniE: help” will trigger the help command if no factoid for “help” exists.
Those are the major changes I have planned so far. The following are other modules planned on being included.
- Bartender – This is a fun module that will serve up mixed drinks, shots, or just beer on command.
- Eval – A module to enable code evaluation. So far only PHP is planned to be supported, but I’d like to extend on that later.
- Lart – Want to hurt someone? Lash out at them with larts!
- Function Reference – Lookup a funcref for PHP4, PHP5, HTML, CSS1, CSS2, DOM1 and DOM2. Future plans to support other languages as well.
- Weather Lookup – Find the current temperature for your area!
- Temperature Conversion – Convert from F to C, C to F, F to K, C to K, K to F, or K to C
- Spell Check – Triggered by command or by adding (sp?) after a word to verify the spelling.
- Karma – Adds karma to users accounts. If no account is found for the user, karma is kept for the unknown user.
- Seen – Keep track of when the last time someone was on the channel and when they left.
- Validator – Validate your HTML and CSS documents right through IRC
That concludes the current list I have. If anyone else has any ideas for new modules or reccomendations of items to add to my current list, please let me know! I’m always open to any contribution.
Update: Sept. 30, 2007
I’ve also got trac running for the SimpleIRC project. If you would like to view it, please visit http://trac.php-oop.net/SimpleIRC/
| Print article | This entry was posted by BigE on September 28, 2007 at 14:28, and is filed under Programming, Python, SimpleIRC. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |