mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 23:53:17 +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) {
|
||||
if(currentGuild.statistics[stations[station].name]){
|
||||
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 += "Used: " + currentGuild.statistics[stations[station].name].used + "\n";
|
||||
} 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 += "Used: " + currentGuild.statistics[stations[station].name].used + "\n";
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user