From 50e7b460471ea830153bcbb12fdfc848067ca5a7 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 12 Oct 2011 17:49:00 +0100 Subject: [PATCH] kickstats --- modules/user.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/modules/user.js b/modules/user.js index d40b741..3dfc5d3 100644 --- a/modules/user.js +++ b/modules/user.js @@ -34,7 +34,26 @@ var userCommands = function(dbot) { var orderedKicks = kickArr.sort(function(a, b) { return a[1] - b[1]; }); var topKicks = kickArr.slice(kickArr.length - 5).reverse(); - var kickString = "Top Kicks: "; + var kickString = "Top Kicked: "; + + for(var i=0;i