Commit Graph

583 Commits

Author SHA1 Message Date
Daniel DiPaolo
15b18edc11 made karma case-insensitive 2003-10-31 21:03:35 +00:00
Jeremy Fincher
07ef648e1c Made the tests for callbacks.addressed more extensive. 2003-10-31 20:04:55 +00:00
James Vega
9e7a37e5bf Test praise for good measure 2003-10-31 18:44:13 +00:00
James Vega
d50d435363 For some reason I was replacing the bot's name with the user's name 2003-10-31 18:43:08 +00:00
Jeremy Fincher
8c93488146 Fixed Bug #833786 (spurious brackets not handled correctly). 2003-10-31 18:18:04 +00:00
Jeremy Fincher
c3d7efa68b Fixed bug with reload not working with non-canonicalNames. 2003-10-30 18:05:57 +00:00
Daniel DiPaolo
c318d5e384 Added the "action" command and associated tests. 2003-10-30 17:16:02 +00:00
Jeremy Fincher
9ddc7c75f5 Somehow messed this one up. 2003-10-30 05:40:39 +00:00
Jeremy Fincher
895ecf718f Fixed bug #832590. 2003-10-30 05:27:25 +00:00
Jeremy Fincher
06ce1bcb94 Added change. 2003-10-30 04:36:40 +00:00
Jeremy Fincher
51c5d53259 Added defaultplugin. 2003-10-30 03:08:52 +00:00
Jeremy Fincher
f4e4233704 CanonicalNamed the toggles. 2003-10-30 02:38:11 +00:00
Jeremy Fincher
1280dbdc90 Added test, fixed a bug it found. 2003-10-30 02:33:04 +00:00
Jeremy Fincher
47a9d24434 Changed setconf to show what the value of the variable is if we don't give something to set it. 2003-10-30 02:13:12 +00:00
Jeremy Fincher
83e16b0d89 Fixed Google test. 2003-10-30 02:10:17 +00:00
Jeremy Fincher
b14bc6e3b7 changed testEmptyNest a slight bit. 2003-10-30 00:15:17 +00:00
Jeremy Fincher
2ed2f6a5ff Used the wrong variable in assertNoResponse. 2003-10-30 00:12:39 +00:00
Jeremy Fincher
138c87f372 Changed to a ChannelPluginTestCase. 2003-10-30 00:12:22 +00:00
Jeremy Fincher
58cf080109 Fixed the nesting bug with testEval and testCalc. 2003-10-29 23:40:14 +00:00
James Vega
afc74b96f0 Fix replacement of my/me not obeying word boundaries. Also created tests to
ensure it stays fixed.
2003-10-29 20:27:09 +00:00
Daniel DiPaolo
8cc9620a4b Fixed ordering by priority when requesting todos for a person (or self) 2003-10-29 20:12:02 +00:00
Daniel DiPaolo
bef71df2ee Added a test to make sure I don't make that stupid mistake (not including "msg"
in irc.error) in the same place again.
2003-10-29 17:39:07 +00:00
Jeremy Fincher
50e1690fca Added test for empty nested command. 2003-10-29 16:09:20 +00:00
Daniel DiPaolo
bfdbda625a Changed karma pluralization to use utils.pluralize() and fixed the tests to
avoid erroring due to ambiguous commands for 'stats' (since 'User' is also
loaded for the tests)
2003-10-29 07:46:49 +00:00
James Vega
535cdde13c Switched the togglesnarfers to the new Toggleable mixin 2003-10-29 06:06:56 +00:00
Daniel DiPaolo
f0b850118b MoobotFactoids should be pretty dang close to finished now. Got the "_is_"
syntax working just fine.
2003-10-29 03:01:02 +00:00
Jeremy Fincher
5617dd6843 Added some commented out tests in case we decide to change the interface of ToggleDictionary. 2003-10-29 00:05:34 +00:00
Jeremy Fincher
e49e5d02f4 Changes to ToggleDictionary. 2003-10-28 23:14:49 +00:00
Daniel DiPaolo
05f8d6a2f8 Added "todo change" and tests for it. 2003-10-28 18:43:43 +00:00
Daniel DiPaolo
f9d97c91f5 Overhaul of Todo, somewhat. Made everyone's todos accessible by anyone, either
by id or by username.  Also, made it so todos are never deleted, just set to
inactive.
2003-10-28 17:40:41 +00:00
Daniel DiPaolo
2527f47cb6 Punctuation ("?!") is now stripped from keys before insertion into the db 2003-10-28 15:30:43 +00:00
Jeremy Fincher
d174226c5c Added the ability to do hashed passwords. 2003-10-28 15:13:53 +00:00
Jeremy Fincher
b63f2170e8 Added a saltHash function. 2003-10-28 14:20:00 +00:00
Jeremy Fincher
b5f7bec137 Gave up on responding with *all* the nonCommands in a message. 2003-10-28 06:23:52 +00:00
Daniel DiPaolo
63c86ec366 Removed a test that was left over from the unified Dunno/MoobotFactoids module 2003-10-28 06:13:05 +00:00
Jeremy Fincher
c2f179cd0d Fixed some bugs and cleaned up the test suite. 2003-10-28 05:49:31 +00:00
Daniel DiPaolo
084fe1854f More MoobotFactoids/Dunno separation fun and fixes 2003-10-28 05:31:51 +00:00
Jeremy Fincher
eaa15860d8 Made sure commaAndify raises TypeError when it's given lists of non-strings. 2003-10-28 05:10:03 +00:00
Jeremy Fincher
9dc16ee761 Changed the most recent title test to use the proper URL. 2003-10-28 04:52:27 +00:00
Jeremy Fincher
e0f617aead Beware the Dowloading! 2003-10-28 04:44:29 +00:00
James Vega
ad022a88ed Added ToggleDictionary class and modified the tests to better model the
specification
2003-10-28 00:52:27 +00:00
Jeremy Fincher
e03c65f753 Changed the whole handling of nonCommands and ambiguousCommands and whatnot. Now plugins can define an 'invalidCommand' method to be called on invalid commands. 2003-10-28 00:22:15 +00:00
James Vega
8ff643d540 Added a test for a website that causes @title to break 2003-10-27 22:32:56 +00:00
James Vega
fbb37025dc plugins/Sourceforge.py: lots of cleanups to the code. Also changed how
togglesnarfer works.
test/test_Sourceforge.py: updated to follow the plugin changes
2003-10-27 20:24:32 +00:00
Jeremy Fincher
19f50ea8f2 Added test for toString output when a channel is specified. 2003-10-27 20:24:23 +00:00
Jeremy Fincher
206de8d7e0 Initial checkin; has test for ToggleDictionary. 2003-10-27 20:21:02 +00:00
Stéphan Kochen
5ace5a48ad Some fixes to Poll, removed delete command, added example. 2003-10-27 15:11:45 +00:00
Jeremy Fincher
9caaf8fef9 Loaded Misc in every test because that's just plain neceessary, what with replyWhenNotCommand and all. 2003-10-27 08:50:42 +00:00
Jeremy Fincher
f2ab2576da Unloaded Misc before testing for no response. 2003-10-27 08:50:18 +00:00
Jeremy Fincher
c150567565 Misc includes a version command and is now loaded by default, so I had to disambiguate the version test. 2003-10-27 08:48:04 +00:00
Jeremy Fincher
fc11ff4f24 Handle properly the case where no matching commands were found. 2003-10-27 04:59:54 +00:00
Jeremy Fincher
7ba9a855bb Test for gkstats Strike. 2003-10-26 12:26:39 +00:00
Jeremy Fincher
0f45fe2c36 Fixed bug in testGreet. 2003-10-25 18:22:52 +00:00
Jeremy Fincher
dd673bc706 Changed splitting on None to pull off the nick to splitting on ' '. 2003-10-24 23:13:51 +00:00
Jeremy Fincher
f83b2fb135 Fixed Added at: format again. 2003-10-24 22:46:48 +00:00
Jeremy Fincher
3538f2c7b4 Made outfilter channel-specific. 2003-10-24 22:43:48 +00:00
Jeremy Fincher
5ae13a9422 Made the bot keep stats on himself. 2003-10-24 22:29:30 +00:00
Jeremy Fincher
fa5ac0a885 Fixed test to match new output. 2003-10-24 22:08:15 +00:00
Jeremy Fincher
5ddd26cc69 Fixed a bugger in Misc.py. 2003-10-24 21:59:49 +00:00
Jeremy Fincher
a666eddd16 Added RFE #827538 and fixed the help test. 2003-10-24 21:55:34 +00:00
Stéphan Kochen
9320ad0e4e Long live unicode! :D 2003-10-24 21:37:09 +00:00
Jeremy Fincher
388da451f2 Fixed failure (used testHelp) and added an encoding so Python doesn't complain. 2003-10-24 21:28:12 +00:00
Jeremy Fincher
094bdee30b Fixed bug with commandsOnStart not being called unless they were already canonical names. 2003-10-24 18:53:34 +00:00
Stéphan Kochen
8d9eb27a2f Initial version of the Poll plugin. Still needs some work. (RFE #715810) 2003-10-24 16:54:07 +00:00
Jeremy Fincher
aa088ef6d9 Added memory reporting stuff to cpustats. 2003-10-24 13:38:55 +00:00
Jeremy Fincher
c9a6f88a9e Updated for the new assertError/assertHelp. 2003-10-24 11:52:24 +00:00
Jeremy Fincher
83c0d344bf Changed to match the new behavior of assertError. 2003-10-24 11:47:00 +00:00
Jeremy Fincher
80777b942f Added assertHelp to remedy the fact that help strings now count as errors. 2003-10-24 11:44:44 +00:00
Jeremy Fincher
f8da745d3f Updated to consider getting the help string an error in assertNotError and assertError. 2003-10-24 11:31:48 +00:00
Jeremy Fincher
660ba14e96 Fixed some failing test cases. 2003-10-24 11:03:43 +00:00
Jeremy Fincher
7d960ca4c6 Added PersistentDictionary.flush. 2003-10-24 09:57:54 +00:00
Jeremy Fincher
b9434a23a6 Added PersistentDictionary. 2003-10-24 09:53:03 +00:00
Jeremy Fincher
fa589ac423 Fix for bug #829353; added a test for the remove command. 2003-10-24 09:10:10 +00:00
Jeremy Fincher
300004ca62 Fix for bug #829300 2003-10-24 09:03:34 +00:00
Daniel DiPaolo
8229759769 Added 'setpriority' and tests. 2003-10-24 07:12:51 +00:00
Daniel DiPaolo
1b25a207bf Made MoobotFactoids case insensitive, and added tests to make sure that
case-insensitivity works.
2003-10-24 01:03:18 +00:00
Daniel DiPaolo
f0574da59a Fixed the 'title' regexp to be non-greedy, in case there's a </title> tag
within the document itself.  Also put a test for this (which will hopefully be
a permanent link... not sure though)
2003-10-24 00:46:21 +00:00
Jeremy Fincher
68dd30cb8b Made stats default to the name of the person asking. 2003-10-23 20:59:51 +00:00
James Vega
6cae1b5ec4 Rewrote @insult and cleaned up the tests for all of FunDB so that they are
more deterministic
2003-10-23 12:35:43 +00:00
Jeremy Fincher
dd40523197 Added the note id to the response to sendnote. 2003-10-23 09:16:20 +00:00
Jeremy Fincher
3944b00001 Updated. 2003-10-23 08:35:26 +00:00
Jeremy Fincher
10c7b7c0c0 Made sure no messages longer than 512 bytes every leave the bot. 2003-10-23 05:53:49 +00:00
Jeremy Fincher
8914543d35 Made <number> optional in convert. 2003-10-23 04:21:40 +00:00
Jeremy Fincher
65b87f822c Fixed bug in info; returned n+1 factoids when there were only n. 2003-10-23 04:17:18 +00:00
Jeremy Fincher
e255ef2e68 Made local plugins to be ordered before global plugins. 2003-10-23 03:26:36 +00:00
James Vega
8a378601b3 As part of the renaming madness, removed any ^db prefix 2003-10-23 02:12:07 +00:00
Daniel Berlin
0b380f56fe Add --id option to geekquote, make it always allow multiline quotes 2003-10-22 22:05:34 +00:00
Jeremy Fincher
84690d56c9 Fixed escaping ValueError in soundex. 2003-10-22 20:09:45 +00:00
Stéphan Kochen
5c1fc0114d Added optional <id> argument to FunDB's excuse 2003-10-22 19:52:05 +00:00
Jeremy Fincher
f7caf3f4fd Updated jeffk and lithp. 2003-10-22 19:43:38 +00:00
Jeremy Fincher
615ed5c34b Made sure the snarfer doesn't respond if there's no license key. 2003-10-22 17:43:04 +00:00
James Vega
89e5a4aa0e The snarfer wasn't quite fixed. Should be fixed for good this time. Also added
a test to make sure that a bad url isn't snarfed.
2003-10-22 15:58:07 +00:00
Jeremy Fincher
0ea2f22517 Made the environment slightly cleaner in PluginTestCase.setUp. 2003-10-22 15:47:44 +00:00
Jeremy Fincher
52bd33015c Made the environment slightly cleaner in PluginTestCase.setUp. 2003-10-22 15:38:43 +00:00
Daniel Berlin
f967783949 Fix import as stuff, add URL snarfer, add test for URL snarfer 2003-10-22 15:20:06 +00:00
Jeremy Fincher
657df52ea3 Fixed search to put the word between stars if it doesn't have any globbing metachacters. 2003-10-22 15:15:50 +00:00
James Vega
f57aba4c80 test/test_Souceforge.py: Removed the commented out tests
plugins/Sourceforge.py: Reverted the snarfer RE back to how it was, with a
slight improvement. This should make it catch more URLs without having all the
negative feedback the last RE produced.
2003-10-22 12:34:22 +00:00
Jeremy Fincher
689c464012 Made --from use ircutils.nickEqual. 2003-10-22 08:08:59 +00:00
Jeremy Fincher
13c10c899e Made outfilters stackable, added md5 and sha as outfilters. 2003-10-22 05:15:41 +00:00
Jeremy Fincher
d28b015b52 Added an apropos command. 2003-10-22 04:32:29 +00:00