add break in leaderboard command

This commit is contained in:
Santiago Forero 2021-09-16 15:46:28 -05:00
parent a63f2b7cff
commit dabe2a1ae3
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ module.exports = {
let text = ""
for(let i = 0; i < 5; i++) {
if(data === undefined) break
text += `${i + 1}. ${data[i].ID} (${data[i].data} cm) `
}