[SimBot-commits] CVS: simbot/plugins info.pl,1.40,1.41
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-05-04 20:54:22
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15081/plugins Modified Files: info.pl Log Message: Updated info.pl's help. Index: info.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/info.pl,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -p -r1.40 -r1.41 --- info.pl 4 May 2005 19:50:12 -0000 1.40 +++ info.pl 4 May 2005 20:54:13 -0000 1.41 @@ -506,9 +506,9 @@ sub munge_pronouns { if($person_being_referenced) { # you're, you are -> $person_being_referenced is $content =~ s/\b(you\'re|you are)/${person_being_referenced} is/ig; - + #' # your -> $person_being_referenced's - $content =~ s/\byour/${person_being_referenced}\'s/ig; + $content =~ s/\byour/${person_being_referenced}\'s/ig; #' } return $content; @@ -554,7 +554,15 @@ sub normalize_urls { &SimBot::plugin_register( plugin_id => 'info', - plugin_help => 'Tells you what simbot has learned about something.', + plugin_params => '(<key> [is [also] <fact>] | list <key>)', + plugin_help => <<EOT, +If only <key> is specified, a random associated fact will be returned. +If <key> is <fact> is specified, <fact> will be stored under <key>, unless + <key> already exists. Use 'is also' to add facts to existing keys. +If list <key> is specified, all associated facts will be returned. +The truthfulness of any stored facts is not guaranteed. +EOT + event_plugin_call => sub {}, # Do nothing. event_plugin_load => \&messup_info, event_plugin_unload => \&cleanup_info, |