3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

more kicks

This commit is contained in:
Luke Slater 2011-11-03 01:48:47 +00:00
parent e60465cfc1
commit f995564dbe

View File

@ -33,7 +33,7 @@ var userCommands = function(dbot) {
} }
var orderedKicks = kickArr.sort(function(a, b) { return a[1] - b[1]; }); var orderedKicks = kickArr.sort(function(a, b) { return a[1] - b[1]; });
var topKicks = kickArr.slice(kickArr.length - 5).reverse(); var topKicks = kickArr.slice(kickArr.length - 10).reverse();
var kickString = "Top Kicked: "; var kickString = "Top Kicked: ";
for(var i=0;i<topKicks.length;i++) { for(var i=0;i<topKicks.length;i++) {
@ -52,7 +52,7 @@ var userCommands = function(dbot) {
} }
var orderedKicks = kickArr.sort(function(a, b) { return a[1] - b[1]; }); var orderedKicks = kickArr.sort(function(a, b) { return a[1] - b[1]; });
var topKicks = kickArr.slice(kickArr.length - 5).reverse(); var topKicks = kickArr.slice(kickArr.length - 10).reverse();
var kickString = "Top Kickers: "; var kickString = "Top Kickers: ";
for(var i=0;i<topKicks.length;i++) { for(var i=0;i<topKicks.length;i++) {