Skip to content

Commit

Permalink
max 10 nearby stations
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Dec 27, 2018
1 parent 65eaeaa commit 8e7441b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/nearby.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const nearby = async (ctx, next) => {
})

const l = nearby.length
for (let i = 0; i < l; i++) {
for (let i = 0; i < l || i < 10; i++) {
const s = nearby[i]

await ctx.replyWithLocation(s.location.latitude, s.location.longitude)
Expand Down

0 comments on commit 8e7441b

Please sign in to comment.