Commit Graph

309 Commits

Author SHA1 Message Date
Jeremy Fincher
b34b6efd14 Fixed to use the proper nick. 2003-09-13 14:48:49 +00:00
Jeremy Fincher
d2ec31c45b Fixed bug in removeAlias that it wouldn't clear the frozen set. 2003-09-13 14:46:03 +00:00
Jeremy Fincher
358533b335 Removed deepthought command now that we have a supyfact for it. 2003-09-13 13:39:41 +00:00
Jeremy Fincher
fb60da149b Added ability to specify optional arguments in aliases with @\d+. 2003-09-13 13:30:33 +00:00
Jeremy Fincher
5a15783e7a Made sure chanop capability supercedes everything else. 2003-09-13 12:59:22 +00:00
Jeremy Fincher
41d266f207 Updated ircdb to have persistent user ids. 2003-09-12 20:06:58 +00:00
James Vega
f524ec0ac9 plugins/Quotes.py: addquote now announces the id of the new quote
test/test_Quotes.py: updated to reflect change in plugin
2003-09-12 13:23:09 +00:00
Jeremy Fincher
0aa448bfc7 Added keyword option And to commaAndify to allow specifying a word other than 'and' as the last separator. 2003-09-12 08:55:30 +00:00
Jeremy Fincher
da8ee2a758 Fixed bug where the bot would respond with 'there is no such command' if it wasn't the canonical name. 2003-09-12 06:59:41 +00:00
Jeremy Fincher
ab88ee0d25 Fixed bug where he'd reply that a command didn't match when regexp methods matched. 2003-09-11 05:31:01 +00:00
Jeremy Fincher
ec1e60bf00 Updated test to reflect new msg.nick != irc.nick guard in doPrivmsg. 2003-09-11 05:16:12 +00:00
Jeremy Fincher
273e4a7a0c Added removeAlias method for easy access from within other plugins. 2003-09-10 21:15:09 +00:00
Jeremy Fincher
dca69510f3 Extracted alias-adding functionality out into a function usable from within other plugins. 2003-09-10 20:25:15 +00:00
Jeremy Fincher
d46f6494e7 Made --url into --fancy and made simple URL responses the default. 2003-09-10 18:15:28 +00:00
Jeremy Fincher
176b9b30b6 Fix for RFE #801934: Response in case of non-commands. 2003-09-10 08:32:20 +00:00
Jeremy Fincher
ffefdf1ab7 Added new pipe syntax to check for recursive aliases. 2003-09-10 08:15:44 +00:00
Jeremy Fincher
e0fae30f46 Now allow multiple plugin directories, RFE #802614. 2003-09-10 06:05:58 +00:00
Jeremy Fincher
73986cb03c Fixed new assert in testTitle. 2003-09-10 05:58:38 +00:00
Jeremy Fincher
ecc820a49c Fixe for bug with titles that spread across lines. 2003-09-09 21:00:36 +00:00
Jeremy Fincher
949deee935 Added RFE #802856, so regexps aren't required by searchfactoids. 2003-09-09 08:41:16 +00:00
Jeremy Fincher
073040d92e Fixed bug #802804 about the bad appearance of [not an acronym]. 2003-09-09 08:33:07 +00:00
Jeremy Fincher
d68c42684d Fixed bug #802801 about calc exposing too ugly error messages. Added tests. 2003-09-09 08:25:33 +00:00
Jeremy Fincher
e386518997 Fixed escaping KeyError and added test. 2003-09-09 07:57:49 +00:00
Jeremy Fincher
2719812074 Fixed bug with ACTIONs and added test. 2003-09-09 07:36:41 +00:00
Jeremy Fincher
071f3916f8 Most IrcMsg.__hash__ were returning 0, because I was using & instead of ^ 2003-09-08 20:29:02 +00:00
Jeremy Fincher
b00743c242 Changed tests to work with new name for unlearn (forget) 2003-09-08 09:10:09 +00:00
Jeremy Fincher
43fbbb9b70 Changed to use callbacks.reply again, now that we have the prefixName option. 2003-09-08 08:50:57 +00:00
James Vega
9d8aa07f86 Added pgpkey and a test case for it 2003-09-08 08:48:33 +00:00
Jeremy Fincher
6aa3e06402 Raise ValueError in the case of bad input. 2003-09-08 06:10:06 +00:00
Jeremy Fincher
66b62a42cd Fixed calc command. 2003-09-07 20:29:42 +00:00
Jeremy Fincher
4bb8d6a479 Fixed xor test case. 2003-09-07 10:07:33 +00:00
Jeremy Fincher
315d8710dc Added pipe syntax. 2003-09-07 09:41:47 +00:00
Jeremy Fincher
c07468e275 Added test to make sure .sendMsg went before .queueMsg. 2003-09-07 08:28:33 +00:00
Jeremy Fincher
e53d4e7f87 Removed less command. 2003-09-07 06:34:07 +00:00
Jeremy Fincher
e3148c03fe Removed foldoc command (it's markedly inferior to Dict.dict). 2003-09-07 06:32:13 +00:00
Jeremy Fincher
d11d24c420 Fixed a bug in testExclaim. 2003-09-07 06:07:42 +00:00
Jeremy Fincher
3ba5942be9 Added test for more command and framework. 2003-09-07 05:33:37 +00:00
Jeremy Fincher
5ef3d7c5f5 Moved tell and last commands from FunCommands to MiscCommands. 2003-09-07 05:26:18 +00:00
Jeremy Fincher
c711dc9d2d Fixed commented-out test. 2003-09-06 22:00:00 +00:00
Jeremy Fincher
8a70f15e89 Fixed bug in aliases with no arguments and added test for it. 2003-09-06 21:58:42 +00:00
Jeremy Fincher
e01d52b2f2 Added less command. 2003-09-06 21:51:21 +00:00
Jeremy Fincher
4dfa786c89 Added tests purely for documentation. 2003-09-06 18:29:35 +00:00
Jeremy Fincher
5ea31bb3df Added PluginDocumentation tests. 2003-09-06 18:20:01 +00:00
Jeremy Fincher
8fa457ec3a Guard TwistedCommandsTestCase against not having twisted. 2003-09-06 07:52:18 +00:00
Jeremy Fincher
74d3b7820f Added PluginDocumentation to test to make sure all commands have documentation. 2003-09-06 06:23:03 +00:00
Jeremy Fincher
7023b25223 Added tests for the longest, stupidest bug in existence. 2003-09-06 05:29:35 +00:00
Jeremy Fincher
6d9cf3e0a2 Added test for empty topic in IrcState. 2003-09-06 03:53:23 +00:00
Jeremy Fincher
3eb86b8869 Made PRIVMSG and NOTICE low-priority so TOPIC would happen before them. 2003-09-06 02:01:44 +00:00
Jeremy Fincher
184e9be97d Added another tiny test to Notes. 2003-09-06 01:11:06 +00:00
Jeremy Fincher
7f77e68384 Added a test. 2003-09-05 20:49:29 +00:00
Jeremy Fincher
7501b3a625 Moved dict stuff to its own plugin. 2003-09-05 20:22:43 +00:00
Jeremy Fincher
21f0cb89ae Moved babelfish stuff to its own plugin. 2003-09-05 19:49:44 +00:00
Jeremy Fincher
57146b93cf Added tests for src/ modules. 2003-09-05 18:47:58 +00:00
Jeremy Fincher
7e80782452 Added a test to make sure JOINs happen before WHOs, and changed code to make that the case. 2003-09-05 18:16:51 +00:00
Jeremy Fincher
f1a9b3f546 Added a sleep to the spinloop so it doesn't suck up 100% cpu. 2003-09-05 17:35:46 +00:00
Jeremy Fincher
0c77571ce8 Added test for searchfactoids. 2003-09-05 15:37:56 +00:00
Jeremy Fincher
85fad59aaf Added whois test. 2003-09-05 10:58:53 +00:00
Jeremy Fincher
596958c4cc Added beGracious, changed to raw strings for regexps, and created test. 2003-09-05 09:40:26 +00:00
Jeremy Fincher
d02b4253a4 Added a test for empty []. 2003-09-05 08:37:06 +00:00
Jeremy Fincher
d43b1ea700 Added dictionaries command and changed the order of the arguments to the dict command; also added --fancy argument to last command. 2003-09-05 04:28:56 +00:00
Jeremy Fincher
f65829b768 Moved several things from fix.py to utils.py. 2003-09-04 20:42:37 +00:00
Jeremy Fincher
a002393085 Added test for pydoc assert. 2003-09-03 18:18:51 +00:00
Jeremy Fincher
f0816d56a7 Changed bold and mircColor to use the right ender \x0F. 2003-09-03 09:46:06 +00:00
Jeremy Fincher
4c980aeb3e Added nItems. 2003-09-03 09:40:26 +00:00
Jeremy Fincher
5857a17f88 Added dict command. 2003-09-03 09:38:17 +00:00
Jeremy Fincher
a764de50ad Added sortBy, which uses the decorate/sort/undecorate pattern to sort by a certain criteria. 2003-09-03 08:51:45 +00:00
Jeremy Fincher
8f475fdcdd The command finder function (I forget the name) would find serendipitously named methods in PrivmsgRegexp, and that's bad. Fixed and added a test for the known case of it. 2003-09-02 07:30:35 +00:00
Jeremy Fincher
83707f81c1 Added normalizeWhitespace. 2003-09-01 18:39:27 +00:00
Jeremy Fincher
85caaf6696 Fixed bug in automatic canonicalNaming of non-commands. 2003-09-01 06:47:22 +00:00
James Vega
38f801fc9f Added thorough testing of new lart/praise functionality 2003-09-01 06:10:05 +00:00
Jeremy Fincher
7ae25e44b9 Removed stupid for loops that I forgot to remove when I removed the debug.printfs. 2003-09-01 06:00:38 +00:00
Jeremy Fincher
1461535b5d Added test for no reason other than to make sure something worked before suggesting it to someone. 2003-09-01 05:20:43 +00:00
Jeremy Fincher
c891592b59 Fixed bug in strlen where it didn't account for spaces. 2003-08-30 22:54:11 +00:00
Jeremy Fincher
36ecc4fcf6 Added zen command. 2003-08-30 19:23:34 +00:00
Jeremy Fincher
442392b5ba Guarded inserts into sys.path. 2003-08-30 19:20:08 +00:00
Jeremy Fincher
7a51fccaf9 Removed some debug.printfs. 2003-08-30 19:19:39 +00:00
Jeremy Fincher
cdd180a37c Forgot to move test over to Http with the kernel command. 2003-08-30 19:16:06 +00:00
Jeremy Fincher
1cd7ccbfa4 Found bug in perlReToPythonRe and fixed it. 2003-08-30 18:39:19 +00:00
Jeremy Fincher
465ab3a591 Added test for case-insensitivity in key lookup. 2003-08-29 07:33:35 +00:00
Jeremy Fincher
953fe860b3 Made error messages more elucidating in PluginTestCase. 2003-08-29 07:33:13 +00:00
Jeremy Fincher
e48024f001 Added a (almost useless) test for ChannelDB. 2003-08-29 06:57:14 +00:00
Jeremy Fincher
60c598be87 Wrote tests and fixed lots of bugs and usability flaws. 2003-08-29 06:32:49 +00:00
Jeremy Fincher
22fcd451e8 Made sure the data directory is pristine before each test. And fixed a typo. 2003-08-29 00:42:04 +00:00
Jeremy Fincher
37f88d5e21 Added more tests and the lasturls command (and --nolimit option to the lasturl command. 2003-08-29 00:40:28 +00:00
Jeremy Fincher
6d7e68fa71 Added tests, fixed the bugs the tests found. 2003-08-28 23:59:03 +00:00
Jeremy Fincher
6066376c6d Handled more user-friendlyily the case where they forget to make plugins a tuple and just put a string in PluginTestCase.plugins. 2003-08-28 23:33:31 +00:00
Jeremy Fincher
63eb848946 Added tests for error conditions. 2003-08-28 22:26:48 +00:00
Jeremy Fincher
b6a70d0dae Tested basic functionality (not ) 2003-08-28 21:39:19 +00:00
Jeremy Fincher
db5c58b98b Added test for bad modified date. 2003-08-28 17:55:31 +00:00
Jeremy Fincher
550f0fb3de Forgot return after irc.error and added test for non-existent location. 2003-08-27 22:30:48 +00:00
Jeremy Fincher
8d669471ba Added assertNotRegexp to PluginTestCase. 2003-08-27 16:03:12 +00:00
Jeremy Fincher
575656992e Fixed bug in weather, added test for it; added example string. 2003-08-27 16:01:51 +00:00
Jeremy Fincher
bb1bdd2725 Added tell command. 2003-08-27 07:46:03 +00:00
Jeremy Fincher
6b0fbdc324 Had translate instead of babelize in testBabelize. 2003-08-26 18:22:05 +00:00
Jeremy Fincher
19a9804dee Added a test and fixed several bugs it found. 2003-08-26 18:10:17 +00:00
Brett Kelly
23321ca960 adding Notes test case 2003-08-25 20:49:22 +00:00
Jeremy Fincher
edebbe448c Removed some debug.printfs. 2003-08-25 20:14:40 +00:00
Jeremy Fincher
95d689005a Raised the debug.minimumDebugPriority so output during tests isn't so ugly. 2003-08-25 20:14:20 +00:00
Jeremy Fincher
e30cf69ec1 Added privmsgs.thread, and so nuked ThreadedFunCommands (subsumed into FunCommands) 2003-08-25 19:34:25 +00:00
Jeremy Fincher
17f00fbeb3 Updated PluginTestCase to allow asynchronous test cases and added test_TwistedCommands.py. 2003-08-25 18:54:37 +00:00
Jeremy Fincher
ad8159751f Added fortune command and some more tests. 2003-08-25 07:55:08 +00:00
Jeremy Fincher
c6f1d74d34 Tested to make sure capitalization didn't matter. 2003-08-25 06:29:44 +00:00
Jeremy Fincher
12ec2a805b Initial checkin. 2003-08-25 06:15:10 +00:00
Jeremy Fincher
5bf5938ff2 Initial checkin. 2003-08-25 05:53:33 +00:00
Jeremy Fincher
65af25467a Raise exception in PluginsTestCase.setUp if no self.plugins. 2003-08-25 05:25:24 +00:00
Jeremy Fincher
0f8350528b Initial checkin. 2003-08-25 05:24:58 +00:00
Jeremy Fincher
d7ec79dde8 Initial checkin. 2003-08-25 05:19:10 +00:00
Jeremy Fincher
6cc3103656 Added PluginTestCase.{getMsg,assertNoResponse} and a timeout option to some commands. 2003-08-25 05:12:43 +00:00
Jeremy Fincher
7851f3a502 Added test for Utilities module. 2003-08-25 05:12:01 +00:00
Jeremy Fincher
5b2cc92917 Weather now works. This is gotenks2's commit. 2003-08-23 13:00:24 +00:00
Jeremy Fincher
a7826bdc34 Added any/all sequence predicates. 2003-08-23 12:08:14 +00:00
Jeremy Fincher
53d883710e Added unCommaThe function. 2003-08-23 07:57:04 +00:00
Jeremy Fincher
1ebfb82353 Fixed a test or two. 2003-08-23 03:47:22 +00:00
Jeremy Fincher
270982d422 Has more useful failure messages and does proper tearDown of the irc object now. 2003-08-23 03:47:00 +00:00
James Vega
3c2ce0164a Added support for: created by, requested by, # requests to lart/praise/excuse/insult related functions
Added more error checking
Added a simple pluralizer
Added tests to stress lart/praise/excuse/insult portions of FunDB
2003-08-22 21:34:33 +00:00
James Vega
274ce40b0f Updated the tests to stress more possibilities 2003-08-22 21:32:06 +00:00
James Vega
24005d3df1 FunDB: Made more general get/remove/num/add commands to consolidate getlart, numinsults, et.al.
test_FunDB: Started adding tests for FunDB
2003-08-22 05:36:53 +00:00
James Vega
f3af416c0a Added tests for the babelfish commands (translate, babelize, randomlanguage). 2003-08-21 18:05:24 +00:00
Jeremy Fincher
6bfd991947 commaAndified timeElapsed. 2003-08-21 16:31:11 +00:00
Jeremy Fincher
4858770ee7 Ew, modified the original argument in utils.commaAndify. 2003-08-21 11:47:43 +00:00
Jeremy Fincher
ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00
Jeremy Fincher
01eb6934ef Added function commaAndify to turn a list of strings into a proper English foo, bar, and baz string. 2003-08-20 09:24:57 +00:00
Jeremy Fincher
7fd35a1071 Made some changes to satisfy PyChecker. 2003-08-19 10:38:45 +00:00
Jeremy Fincher
6560f9e7ae Finally removed all the known bugs. 2003-08-18 07:10:17 +00:00
Jeremy Fincher
e05a0d18c9 Found a bug, wrote a test, yay. 2003-08-18 06:58:37 +00:00
Jeremy Fincher
5ab19c44ce Added test for new snarfing output. 2003-08-18 06:49:00 +00:00
Jeremy Fincher
2c6f505bea Added vim modelines. 2003-08-17 22:13:10 +00:00
Jeremy Fincher
0f4a78dc2d Added a snarfer for stats links and refactored. 2003-08-17 22:01:26 +00:00
Daniel DiPaolo
e2e277df0f * added a test for utils.findBinaryInPath 2003-08-17 21:16:02 +00:00
Jeremy Fincher
2b79b6501f A few updates to the spell command, and some tests. 2003-08-17 19:15:37 +00:00
Jeremy Fincher
f2bb968030 Added a few more test cases to testDQRepr and made it less fragile. 2003-08-17 06:26:50 +00:00
Jeremy Fincher
f9928ba41f Oops, forgot to re-enabled non-testOrd tests when I committed. 2003-08-17 06:26:00 +00:00
Jeremy Fincher
384393d386 Re-enabled the part that says how many asserts there are. 2003-08-17 06:25:41 +00:00
Jeremy Fincher
14043d28e2 Tyop. 2003-08-17 02:07:40 +00:00
Jeremy Fincher
b78cabaed5 Wrote some more tests for FunCommands; found some bugs in the process. 2003-08-17 02:02:53 +00:00
Jeremy Fincher
074268ffe6 Added some tests and fixed a bug they found in the title command. 2003-08-15 17:40:14 +00:00
Jeremy Fincher
bbf0f711bf Added assertError, assertRegexp, and assertRegexps to PluginTestCase 2003-08-15 06:24:44 +00:00
Jeremy Fincher
0415251146 Added assertNoError to PluginTestCase 2003-08-15 02:28:51 +00:00
Jeremy Fincher
d25b3894d7 Fixed bug in calc. 2003-08-15 00:42:35 +00:00
Jeremy Fincher
2a4c2ea185 Nuked ircutils.nick. Good riddance. 2003-08-12 19:12:12 +00:00
Jeremy Fincher
feda60aff2 Updated some tests. 2003-08-11 17:06:42 +00:00
Jeremy Fincher
2760c1bce0 Added group and test for group. 2003-08-11 07:12:41 +00:00
Jeremy Fincher
09f2ae8412 Made PluginTestCase handle multiple plugins. 2003-08-11 05:15:16 +00:00
Jeremy Fincher
0c8ee83f92 Reduced the number of rot13 asserts to 10. 2003-08-11 05:10:36 +00:00
Jeremy Fincher
1a05dc957b Made PluginTestCase handle threaded plugins properly. 2003-08-11 05:09:59 +00:00
Jeremy Fincher
d7990d874e Added first plugin test case, mostly for example. 2003-08-10 11:22:53 +00:00
Jeremy Fincher
84b96108b5 Added TestCase subclass for testing plugins. (Also removed Cmd class from previous attempt) 2003-08-10 11:22:18 +00:00
Jeremy Fincher
58453cc480 Added a minimal test for schedule. 2003-08-07 10:10:23 +00:00
Jeremy Fincher
36996dd3cf Updated stuff for 2.3 to break 2.2 compatibility :) 2003-08-07 02:48:44 +00:00
Jeremy Fincher
5ec5b997ca Made safeArgument handle colors correctly. 2003-08-01 23:48:02 +00:00