From 707aa90f99fa16f8a82082575a677724af6f1db8 Mon Sep 17 00:00:00 2001 From: timriker Date: Sat, 23 Nov 2002 17:18:32 +0000 Subject: [PATCH] status.. perhaps 'botmail stats' would be better?' git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@694 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/UserExtra.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UserExtra.pl b/src/UserExtra.pl index 2413408..bfd2487 100644 --- a/src/UserExtra.pl +++ b/src/UserExtra.pl @@ -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." ); -- 2.39.2