]> git.donarmstrong.com Git - infobot.git/commitdiff
status.. perhaps 'botmail stats' would be better?'
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 23 Nov 2002 17:18:32 +0000 (17:18 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 23 Nov 2002 17:18:32 +0000 (17:18 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@694 c11ca15a-4712-0410-83d8-924469b57eb5

src/UserExtra.pl

index 24134088410f3f221e10b9e35f3be5dd9ba865f8..bfd2487c2c6bbda1cb2aaec2f8e623f9f337fae6 100644 (file)
@@ -792,7 +792,8 @@ sub userCommands {
     if ($message =~ /^statu?s$/i) {
        my $startString = scalar(gmtime $^T);
        my $upString    = &Time2String(time() - $^T);
-       my $count       = &countKeys("factoids");
+       my $factoids    = &countKeys("factoids");
+       my $botmail     = &countKeys("botmail");
 
        $count{'Commands'}      = 0;
        foreach (keys %cmdstats) {
@@ -812,7 +813,8 @@ sub userCommands {
          " and \002$count{'Commands'}\002 ".
                &fixPlural("command",$count{'Commands'}).
          ".  I have been awake for $upString this session, and ".
-         "currently reference \002$count\002 factoids.  ".
+         "currently reference \002$factoids\002 factoids.  ".
+         "I have \002$botmail\002 ". &fixPlural("message", $botmail). ".  ".
          "I'm using about \002$memusage\002 ".
          "kB of memory."
        );