My suggestion is: when user using !points command, there will be additional parametr $position and $count, what will print position in users table ordered by points
Since we on typeorm i guess it’s easy.
Bot: @user has currently 500 points. Your position in top: 1/3
Bot: @user has currently 400 points. Your position in top: 3/3
Bot: @user has currently 450 points . Your position in top: 2/3
Suggested format: check examples what i typed below, like
"pointsResponse": "$username has currently $amount $pointsName". Your position in top: $position/$usersCount