mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
more kicks
This commit is contained in:
parent
e60465cfc1
commit
f995564dbe
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user