Commit Graph

47 Commits

Author SHA1 Message Date
James Vega 7e52305f35 Add anydbm to our conf.Databases so that Markov can be converted to our
new-style db infrastructure.
2004-09-13 17:28:31 +00:00
James Vega 1fcc709ae8 Finish switching from "foo in db" to "db.has_key(foo)" 2004-09-13 14:26:25 +00:00
Jeremy Fincher ce3847fc88 Swapped the order of the arguments for makeChannelFilename. 2004-09-12 20:26:08 +00:00
James Vega c1a0304724 Gotta have ourself if we want to be called. 2004-09-10 01:36:55 +00:00
Jeremy Fincher 1b4c1f068a Fix for bug with some anydbms. 2004-09-01 11:17:36 +00:00
James Vega 570b3024c2 Should fix a reported bug. I guess db isn't always iterable. 2004-08-28 20:12:51 +00:00
James Vega 29a6c92b76 Added an optional pair to start the chain, tests, and caught some errors. 2004-08-27 06:34:48 +00:00
James Vega 85355f5da7 We have to unAction or we get ugly replies 2004-08-25 19:35:03 +00:00
James Vega ba7b018078 gotta explicitly split on ' ' since we use \n as a delimiter 2004-08-25 19:13:35 +00:00
James Vega 3635c654ef Fix a bug with adding lasts. Add some elucidating (as jemfinch would put it)
documentation.  Modify the behavior of DbmMarkovDB.firsts and .lasts so
they only report unique entries since this is how we used to behave.  We'll
still keep duplicate entries in the db because it affects randomness.
2004-08-25 18:54:21 +00:00
James Vega fbc1b04cae Markov *finally* works again. Yay! 2004-08-25 18:15:09 +00:00
Jeremy Fincher fbb348b6e7 Copyright updates. Again, more is left to be done, but this is my part. 2004-08-23 13:14:06 +00:00
Jeremy Fincher a1a4a7705b Let's name the workqueue. 2004-08-18 18:43:03 +00:00
Jeremy Fincher 0bdbae6e47 Make sure the MarkovWorkQueue dies. 2004-08-17 16:18:59 +00:00
Jeremy Fincher 5300aff306 Forgot to setDaemon. 2004-08-02 00:38:39 +00:00
Jeremy Fincher d81ca6fa08 New Markov implementation. It's still broken, but I gotta run, so I'll fix it later. 2004-08-01 20:28:08 +00:00
Jeremy Fincher f9c61271ea w00, less path mungingEXCLAIMEXCLAIM 2004-07-24 05:18:26 +00:00
Jeremy Fincher 25281d7476 Workaround for Markov wonkiness. 2004-04-16 08:31:16 +00:00
James Vega fac4c5624c Removed any unnecessary configure methods (ones that only called
conf.registerPlugin) and changed all other configure methods to accept the
advanced argument instead of onStart.
2004-01-29 23:58:27 +00:00
James Vega bc11f76166 Updated configure() to only take one argument (onStart) and switched all of
the onStart.append('load pluginName') calls to
conf.registerPlugin('pluginName', True)
2004-01-28 22:19:25 +00:00
Jeremy Fincher 530aec2be0 Updated the reply infrastructure. No more msg, it's just not necessary. 2004-01-08 03:12:14 +00:00
Daniel DiPaolo 6000b1c27d Fixed a few places where int()'ing COUNT result cols was required 2003-12-27 09:31:38 +00:00
Jeremy Fincher 3398f1a819 Made the error message better when people try to run a plugin that requires sqlite and they don't have it. 2003-12-03 23:48:00 +00:00
Jeremy Fincher 48166f4895 Huge update to the logging infrastructure. 2003-11-26 18:21:12 +00:00
Jeremy Fincher 5f4a541fe1 Added __revision__ strings. 2003-11-25 08:23:47 +00:00
Jeremy Fincher 6b5ef88c06 Added some debugging printfs that may be useful in the future. 2003-11-22 00:40:46 +00:00
Jeremy Fincher 909597b7ac Changed the name of the commands in Markov and added a test (that currently only tests documentation) for Markov. 2003-11-19 22:25:19 +00:00
James Vega 5cfe9ffd3e Yay! We finally have a threaded Markov plugin 2003-11-17 18:21:44 +00:00
Jeremy Fincher a34589cce7 Completed the removal of callbacks.Privmsg.doPrivmsg. 2003-10-28 06:30:42 +00:00
James Vega 84f931bb9f Lots of pylint cleanups 2003-10-11 21:03:02 +00:00
Jeremy Fincher ec0de6431d Changed baseplugin not to require 'from baseplugin import *' because fix is now munging builtins. 2003-10-05 12:56:56 +00:00
Jeremy Fincher 2cd657c9a9 Made sure ChannelDBHandler is before callbacks.Privmsg* in the inheritance order so self.die() is ChannelDBHandler's and not callbacks.Privmsg*. 2003-10-05 04:41:49 +00:00
Jeremy Fincher 98011fe099 Added docstring. 2003-08-23 12:40:35 +00:00
Jeremy Fincher 1a704ef1f7 Made Markov module threaded. 2003-06-10 16:51:21 +00:00
Jeremy Fincher 11a674eb2b Added handling for case of a channel with no pairs/follows. 2003-04-20 07:15:31 +00:00
Jeremy Fincher 32268cdef8 Removed unused import. 2003-04-17 10:06:29 +00:00
Jeremy Fincher c92386f7cf Changed ISNULL(word) to word ISNULL. 2003-04-11 21:36:25 +00:00
Jeremy Fincher 13109d1f96 Changed word=NULL to ISNULL(word) 2003-04-11 21:33:23 +00:00
Jeremy Fincher 62a833f29a Added markovfirsts command. 2003-04-11 21:31:43 +00:00
Jeremy Fincher 8b0f62220d Added markovfirsts command. 2003-04-11 21:25:31 +00:00
Jeremy Fincher 9253ce5adc Stupid lack of import... 2003-04-11 21:05:16 +00:00
Jeremy Fincher 96e79c2b2d Fixed behavior for actions. 2003-04-11 21:04:34 +00:00
Jeremy Fincher 3ddc088764 Forgot to move two lines under the fix. 2003-04-11 21:00:51 +00:00
Jeremy Fincher c282eadcc3 Fixed UnboundLocalError. 2003-04-11 20:57:39 +00:00
Jeremy Fincher fd4c20c258 Added is_first field to database to make sure markov phrases start naturally. 2003-04-11 19:50:41 +00:00
Jeremy Fincher 78b44e7a1e Changed markov command to know when to stop instead of taking a length. 2003-04-11 14:08:45 +00:00
Jeremy Fincher 241e493755 Initial import. 2003-04-11 06:56:37 +00:00