$userLeaderboard

Creates an user leaderboard from uservar

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

Available Variables:

VariableDescription
{top}returns the rank number
{value}returns the numerical value of the variable
{raw_value}returns the raw value in case it's not number
{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 .

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

Related Functions

Check out: $setUserVar

Check out: $getUserVar

Check out: $deleteUserVar

Check out: $resetUserVar