d2442689adTODO to use POST instead of GET for translate queriesBrian S. Stephan2010-08-13 14:20:12 -05:00
9720dfe5bcRevert "Generalize translation code in GoogleTranslate.py". Previous three reverts to undo the recent stuff from kad's branch, which was having problems with recursionBrian S. Stephan2010-08-01 19:31:09 -05:00
493521c3daRevert "A few minor changes to previous GoogleTranslate commit"Brian S. Stephan2010-08-01 19:27:44 -05:00
4712e69336refer to the actual list variable when looking up meta.pubmsg_needs_bot_prefixBrian S. Stephan2010-08-01 12:19:15 -05:00
e13264fc3badd method to remove metaoptions (debug, the new 'meta.pubmsg_needs_bot_prefix') from a list. provided for convenienceBrian S. Stephan2010-08-01 12:13:38 -05:00
d590eede2aTrigger module, to do simple output when seeing simple input. basic version works, but i should probably make this a regexBrian S. Stephan2010-08-01 12:03:03 -05:00
1ec197be95establish a per-module option that specifies whether or not active commands to it need to be prefixed with the bot's name. doesn't help stuff like Seen's reimplementation of on_pubmsg, since it would want to do the tracking regardless of this option. also, work around this addition in the countdown module, so it doesn't show up in lists.Brian S. Stephan2010-08-01 11:55:14 -05:00
4d41314195standardize config sections to use class name. NOTE: USERS NEED TO UPDATE THEIR CONFIGBrian S. Stephan2010-08-01 11:41:26 -05:00
f739cb6114url tracking via Urls module. partially complete the TODO, still not automatically tracking channel urls. also .gitignore *.urls filesBrian S. Stephan2010-07-30 23:02:38 -05:00
ad8e30a46bMerge branch 'master' into kad
kad
2010-07-30 21:42:07 -06:00
1920a12759Generalize translation code in GoogleTranslate.py
kad
2010-07-30 21:33:57 -06:00
20dc0b0246fix a utf8 problem that was blocking translate recursionBrian S. Stephan2010-07-30 22:03:51 -05:00
92d5b5d94eFix utf-8 error in GoogleTranslate
kad
2010-07-30 20:22:16 -06:00
3ba95fa285recursion TODO seems to already be taken care of. part of kad's modularization? who knowsBrian S. Stephan2010-07-30 20:47:01 -05:00
d561d16e64weather module. same output as in the irssi bot script. uses pywapi that was added a couple commits agoBrian S. Stephan2010-07-30 20:30:39 -05:00
c88b83a048accidentally added python-weather-api to repo a bit early, here it is in EXTERNALSBrian S. Stephan2010-07-30 19:59:55 -05:00
54d62dd587unicode fixes, in part to support what is going on in an in-dev weather moduleBrian S. Stephan2010-07-30 19:57:10 -05:00
5f29d12561minor comment update following the recent register_handlers() changeBrian S. Stephan2010-07-30 18:54:57 -05:00
594c4d297dremove_global_handler() for pubmsg and privmsg by default, since Module does the add_global_handler() (last commit)Brian S. Stephan2010-07-30 18:53:58 -05:00
eb1efa4919add_global_handler() for pubmsg and privmsg by default, since Module defines on_pubmsg/on_privmsg anyway, and that's been the default for almost every module so farBrian S. Stephan2010-07-30 18:50:56 -05:00
bb08669b70last commit completed 'TODO: move modlist.append() to Module' even though nothing actually had to be movedBrian S. Stephan2010-07-30 14:47:10 -05:00
5ba26107cceach module subclassing Module unnecessarily defined __init__, with the exception of IrcAdmin, whose SIGINT setup was moved to register_handlersBrian S. Stephan2010-07-30 14:38:28 -05:00
0fc9a325fbchange command: 'save' -> 'config save'. will have other config functions, rename method eventuallyBrian S. Stephan2010-07-30 06:49:24 -05:00
1edeb703b4printing the time string with countdown result was vetoed pretty early on, and i don't think i have any want to go back to that wellBrian S. Stephan2010-07-30 00:36:11 -05:00
ae4c1fa726move common reply functionality into a method in ModuleBrian S. Stephan2010-07-30 00:34:57 -05:00
57090fdda4long list of changes to allow modular Module reloads: server as module variable, class appends self to module list, unregister_handlers method which must be overridden, reload method which does the magic to create the a new object of the re-read class. drop use of the main rehash and reload_modules, and don't pass rehash around anymore. load initial objects 'the old way' again. feature modules change for compatability and implementation of all of the above changesBrian S. Stephan2010-07-29 22:36:08 -05:00
87c4cec3f2override on_pubmsg, since we need to do things regardless of the normal command-addressed-to-bot flowBrian S. Stephan2010-07-29 00:44:38 -05:00
02df2ca783Cleanup code
kad
2010-07-28 12:25:49 -06:00
0c17196b32Add some modelines and fix indentation, I hope.
kad
2010-07-27 23:11:58 -06:00
ec9acdd2eeForgot to add files :(
kad
2010-07-27 19:35:01 -06:00
1704fc7c50Add ability to rehash modules. Split modules into separate files. Rehash is a bit flakey, not sure of a better way to do it.
kad
2010-07-27 19:26:21 -06:00
c1da6cc052use the with keyword to open the file, so that the file is properly closedBrian S. Stephan2010-07-26 21:08:34 -05:00
5927d361efbite the bullet and load the entire file into memory rather than doing the fun only-load-one-line trick, so that it's easier to search with a regex laterBrian S. Stephan2010-07-26 21:06:59 -05:00
3037364ef9more unicode fake replacements, now that i reverted the real fixBrian S. Stephan2010-07-26 20:54:54 -05:00
497554c314Revert "handle unicode escapes the right way, now that i properly looked up what was going on" because it turns out that result languages like ja mix the escaped unicode and the natural unicode and that screws up every method i've found to parse so far, as they all appear to expect all escaped or all native. here's an example:Brian S. Stephan2010-07-26 20:48:54 -05:00
22c423f8b5creating custom classes inheriting from irclib, in an attempt to figure out this unicode stuff and to do privmsg splitting eventuallyBrian S. Stephan2010-07-26 20:05:17 -05:00
9836ebf11fhandle unicode escapes the right way, now that i properly looked up what was going onBrian S. Stephan2010-07-26 19:29:52 -05:00
3bd8fb13c2do a couple simple conversions of htmlified characters to their ascii equivalentBrian S. Stephan2010-07-26 18:33:10 -05:00
8fba54e33dfact module. gets a random line out of the file, still needs search support, adding, whatever elseBrian S. Stephan2010-07-26 18:14:33 -05:00
c8e3a4354bsupport for recursion. took a lot of time, probably a bit brittle, and a bunch of other changes got caught in the wake as i made it work. there are a couple candidates for making things generic in Module somewhere (somehow?), as a lot of stuff around replypath is reused for each classBrian S. Stephan2010-07-26 00:49:15 -05:00
565aff193cconvert all the miscellaneous irc interactions to an IrcAdmin Module. now everything is a module, and i can remove some other hooks. ugliest diff to date.Brian S. Stephan2010-07-25 22:06:51 -05:00