# XP and leveling

How XP works in PeakBot: message and voice XP, cooldowns, multipliers, level roles, level-up messages, and the /rank and /leaderboard commands.

Members earn XP for messages and for time in voice. Everything is on Dashboard → **XP & Leveling**.

## How XP works

- Set a minimum and maximum XP per message, so it is not perfectly predictable
- A cooldown stops someone farming by spamming
- Voice XP is set per minute, with a session cap
- Multipliers can boost a channel or a role
- XP decay can bleed inactive members back down, if you want that

| Setting | Plan |
| --- | --- |
| Message XP, the cooldown and level roles | Free |
| Voice XP, multipliers and XP decay | Paid plan |

## Level roles

Give a role at a level. Add as many as you like.

Choose whether roles **stack**, keeping every role earned, or whether each new one replaces the last.

## Level-up messages

Pick the channel level-ups are announced in and write the message yourself. You can also exclude channels from earning XP entirely.

## The leaderboard

`/rank` shows your card, `/rank <user>` shows someone else's, and `/leaderboard` shows the server.

On the dashboard you can edit a member's XP by hand and reset the leaderboard. Pinning a member, and importing or exporting the whole leaderboard, need a Paid plan.

Source: https://peakbot.pro/docs/xp-and-leveling
