forked from GitHub/dbot
Fix kickArr reference in ~kickstats
This commit is contained in:
parent
c798e42152
commit
471918d328
@ -42,8 +42,8 @@ var userCommands = function(dbot) {
|
|||||||
kickArr = kickArr.slice(kickArr.length - 10).reverse();
|
kickArr = kickArr.slice(kickArr.length - 10).reverse();
|
||||||
var kickString = "Top " + topWhat + ": ";
|
var kickString = "Top " + topWhat + ": ";
|
||||||
|
|
||||||
for(var i=0;i<topKicks.length;i++) {
|
for(var i=0;i<kickArr.length;i++) {
|
||||||
kickString += topKicks[i][0] + " (" + topKicks[i][1] + "), ";
|
kickString += kickArr[i][0] + " (" + kickArr[i][1] + "), ";
|
||||||
}
|
}
|
||||||
|
|
||||||
return kickString.slice(0, -2);
|
return kickString.slice(0, -2);
|
||||||
|
Loading…
Reference in New Issue
Block a user