$userLeaderboard

Creates an user leaderboard from uservar

Usage: $userLeaderboard[variable;asc/desc (optional);{top}.- {username} - {value};list (optional, max=40);page (optional)]

Available Variables:

  • {top} : returns the rank number
  • value}: returns the value of the variable
  • {id} : returns the user id
  • {mention}: returns the user mention
  • {username}: returns the username
  • {nickname}: returns the nickname
  • {tag}: returns the tag like Mido#1234
  • {discriminator}: returns the discriminator like 1234

Order:

  • asc: Rank is sorted from big to small numbers
  • asc: Rank is sorted from small to big numbers

Example:

To use this function your uservar must have nummeric values .

Mido02/03/2022
!!exec $setUserVar[money;100]
!!exec $userLeaderboard[money;asc;{top}.- {username} - {value}]
Custom Command Bot 02/03/2022
1.- Mido - 100

Related Functions

Check out: $setUserVar

Check out: $getUserVar

Check out: $deleteUserVar

Check out: $resetUserVar