[SimBot-commits] CVS: simbot ChangeLog,1.78,1.79 TODO,1.18,1.19 simbot.pl,1.126,1.127
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2005-07-25 09:34:35
|
Update of /cvsroot/simbot/simbot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3144 Modified Files: ChangeLog TODO simbot.pl Log Message: This reworks the base word score for "interesting" words to compensate for the long-term growth of the database. The formula may need some work, but this is already better. I also beat up some debug code a little bit. Index: ChangeLog =================================================================== RCS file: /cvsroot/simbot/simbot/ChangeLog,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -p -r1.78 -r1.79 --- ChangeLog 25 Jul 2005 08:06:13 -0000 1.78 +++ ChangeLog 25 Jul 2005 09:34:07 -0000 1.79 @@ -2,6 +2,13 @@ Version 1.0 alpha: (25 Jul 2005) * simbot.pl: - Added message value returned to callbacks attached to the nojoin (banned/invite-only) event. + - The starting score for finding interesting words is more adaptive + so oft used interesting words should be able to keep a positive + score better. The query_word_score callbacks now receive the + start score. + - The debug function now accepts constants in addition to numbers + for the different levels. DEBUG_NO_PREFIX allows callers to avoid + having the PREFIX text attached to the beginning of their line. * plugins/services.chanserv.pl: - Rewrote the chanserv support to automatically attempt to register with nickserv, and to automatically try to link nicknames with Index: TODO =================================================================== RCS file: /cvsroot/simbot/simbot/TODO,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -p -r1.18 -r1.19 --- TODO 25 Jul 2005 08:06:14 -0000 1.18 +++ TODO 25 Jul 2005 09:34:10 -0000 1.19 @@ -8,7 +8,6 @@ Targets for 1.0 Beta - Implement automatic database backups. - Implement learning ignore by hostmask/nickname. - Implement autokick plugin. -- Make interesting word base score adaptive by db size, because over time a constant is not enough, and lots of words become uninteresting. - Improve data storage format by converting to DBD-SQLite. - Convert all private messaging to private notices, to comply better with RFC 2812 section 3.3.2. - Verify backwards compatibility with LWP < 5.802. We should never offer to accept gzipped content if we can't decode it. Index: simbot.pl =================================================================== RCS file: /cvsroot/simbot/simbot/simbot.pl,v retrieving revision 1.126 retrieving revision 1.127 diff -u -d -p -r1.126 -r1.127 --- simbot.pl 25 Jul 2005 08:06:14 -0000 1.126 +++ simbot.pl 25 Jul 2005 09:34:10 -0000 1.127 @@ -54,17 +54,26 @@ use vars qw( %conf %chat_words $chosen_n %plugin_help %plugin_params %hostmask_cache ); -# Error Descriptions -use constant ERROR_DESCRIPTIONS +# Debug Constants +use constant DEBUG_PREFIX => ('', 'ERROR: ', 'ALERT: ', '', 'DEBUG: ', 'SPAM: '); +use constant DEBUG_NONE => 0; +use constant DEBUG_ERR => 1; [...1049 lines suppressed...] } -&debug(5, "Starting main event loop.\n"); +&debug(DEBUG_SPAM, "Starting main event loop.\n"); $kernel->run(); -&debug(5, "Exited main event loop.\n"); +&debug(DEBUG_SPAM, "Exited main event loop.\n"); &save; if ($terminating == 2) { - &debug(3, "Restarting script...\n"); + &debug(DEBUG_STD, "Restarting script...\n"); exec "./simbot.pl" . (defined $args{debug} ? " --debug=$args{debug}" : "") . (defined $args{config} ? " --config=\"$args{config}\"" : ""); } else { - &debug(3, "Terminated.\n"); + &debug(DEBUG_STD, "Terminated.\n"); if($terminating > 2) { exit $terminating; #abnormal exit } else { |