add break in leaderboard command
This commit is contained in:
parent
a63f2b7cff
commit
dabe2a1ae3
|
@ -17,6 +17,7 @@ module.exports = {
|
||||||
|
|
||||||
let text = ""
|
let text = ""
|
||||||
for(let i = 0; i < 5; i++) {
|
for(let i = 0; i < 5; i++) {
|
||||||
|
if(data === undefined) break
|
||||||
text += `${i + 1}. ${data[i].ID} (${data[i].data} cm) `
|
text += `${i + 1}. ${data[i].ID} (${data[i].data} cm) `
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue