# Specific features

### Export command

The export command exports the leaderboard as a large and complete json file. You can find an example [here](https://haste.chaun14.fr/naladoxoji.json). Useful when you have to give automatically a reward based on invites outside your server.

```json
[
    {
        "id": "DISCORD USERID",
        "tag": "USERNAME#0000",
        "username":"USERNAME",
        "discriminator": "0000",
        "rank": USERRANK (INT),
        "maxRank": TOTAL LEADERBOARD RANK (INT),
        "valid": AMOUNT OF VALID INVITES (INT),
        "bonuses": AMOUNT OF BONUSES INVITES (INT),
        "fake": AMOUNT OF INVALIDATED INVITES (INT),
        "leave": AMOUNT OF INVITED WITH LEFT MEMBER (INT),
        "total": valid + bonuses + fake + leave (INT)
    }
]

```

![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FyjqsPB3m5mUX2VfuDVGP%2Fimage.png?alt=media\&token=7066c3fb-ac0c-462f-a08c-0f37fa8e0745)

### Ranks system

With a private bot instance, the role reward feature is enabled, to use with caution.

{% hint style="warning" %}
This system has been removed from the main bot due to some abuses against discord [TOS](https://discord.com/tos) and [guidelines](https://discord.com/guidelines). You MUST respect them to avoid your bot/server/account getting banned.
{% endhint %}

{% tabs %}
{% tab title="/ranks" %}
![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FY29y7Awdy0vFFaPSdiQW%2Fimage.png?alt=media\&token=a97f5080-477f-4144-880c-09ccd58c3ba8)
{% endtab %}

{% tab title="/addrank" %}
![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FQr5eNhmg6AUMIRjFZlxC%2Fimage.png?alt=media\&token=c9269ac7-76d1-4464-9089-6d34e81a74cb)

Once a rank is added you have to refresh current members roles using `/refreshranks all` command
{% endtab %}

{% tab title="/rankConfig" %}
![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FEnR7hjolb39dnVmU5JVY%2Fimage.png?alt=media\&token=89cad4e9-9871-4c39-b9d6-c15fb044fd02)
{% endtab %}
{% endtabs %}
