Commit Graph

62 Commits

Author SHA1 Message Date
James Vega
204e30fc64 Don't want to pass the Random kwarg on to irc.reply 2005-01-04 16:34:49 +00:00
James Vega
56907b8266 Let's not error to the channel if we're randomly speaking 2005-01-02 03:10:14 +00:00
James Vega
d103888968 Forgot an import 2005-01-02 03:04:13 +00:00
James Vega
4261ec4f76 Implement RFE #1087718, add a config var to ignore messages addressed to the bot. 2004-12-29 16:45:08 +00:00
James Vega
9f84f150b7 There were some unforseen consequences of using irc.error(), so back to
this way for now.
2004-12-10 05:55:04 +00:00
James Vega
3b61351d21 Let's try and use the database we'd normally be using. 2004-12-10 03:39:45 +00:00
James Vega
fd2f52970c Hopefully Markov is now written with the lowest common denominator of the
idiotic anydbm in mind.
2004-12-10 02:43:33 +00:00
James Vega
7862d8d5d2 Better way to reply with the help. 2004-12-09 19:15:09 +00:00
James Vega
59b561b0af Add Markov.stats. Add some elucidating comments. Remove incomplete
SqliteMarkovDB and unused MarkovDBInterface
2004-12-08 03:10:03 +00:00
James Vega
9a3d196986 Move the Probability class to src/registry.py 2004-11-28 08:05:56 +00:00
James Vega
611149aadc Add plugins.Markov.minChainLength and plugins.Markov.maxAttempts which
should allow for interesting Markov chains (unless you like the one-worders).
2004-11-11 18:50:21 +00:00
James Vega
59d306598a Commit my long sought after *cough*Skorobeus*cough* randomSpeaking updates 2004-11-09 18:43:27 +00:00
James Vega
28185185dd Small fix for when we generate a markov chain with initial words. 2004-10-08 21:40:23 +00:00
James Vega
50973a10fb Remove #! lines. 2004-09-20 03:01:50 +00:00
James Vega
6548085878 Stop stripping Markov's db 2004-09-17 04:40:21 +00:00
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