mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Previously wrong station number in statistics
This commit is contained in:
parent
9648e828e6
commit
2fef361d45
@ -17,14 +17,15 @@ module.exports = {
|
|||||||
Object.keys(client.stations).forEach(function(station) {
|
Object.keys(client.stations).forEach(function(station) {
|
||||||
if(currentGuild.statistics[stations[station].name]){
|
if(currentGuild.statistics[stations[station].name]){
|
||||||
if(i > 0){
|
if(i > 0){
|
||||||
statistics += "**" + station + " " + stations[station].name + "** \n";
|
statistics += `**${parseInt(station) + 1}** ` + stations[station].name + " \n";
|
||||||
statistics += "Time: " + client.funcs.msToTime(currentGuild.statistics[stations[station].name].time, "hh:mm:ss") + "\n";
|
statistics += "Time: " + client.funcs.msToTime(currentGuild.statistics[stations[station].name].time, "hh:mm:ss") + "\n";
|
||||||
statistics += "Used: " + currentGuild.statistics[stations[station].name].used + "\n";
|
statistics += "Used: " + currentGuild.statistics[stations[station].name].used + "\n";
|
||||||
} else {
|
} else {
|
||||||
statistics = "**" + station + " " + stations[station].name + "** \n";
|
statistics = `**${parseInt(station) + 1}** ` + stations[station].name + " \n";
|
||||||
statistics += "Time: " + client.funcs.msToTime(currentGuild.statistics[stations[station].name].time, "hh:mm:ss") + "\n";
|
statistics += "Time: " + client.funcs.msToTime(currentGuild.statistics[stations[station].name].time, "hh:mm:ss") + "\n";
|
||||||
statistics += "Used: " + currentGuild.statistics[stations[station].name].used + "\n";
|
statistics += "Used: " + currentGuild.statistics[stations[station].name].used + "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user