# A Discord leveling bot you don't have to code

> Members earn XP for chatting, level up with an announcement, win Level 5, 10, 25 and 50 roles, and check /rank and /leaderboard. A no-code template.

Source: https://buildcord.dev/templates/leveling/
Updated: 2026-11-05
Publisher: Buildcord (https://buildcord.dev)

Members earn 15 to 25 XP for chatting, at most once a minute. When they reach a new level the bot congratulates them, and at levels 5, 10, 25 and 50 it gives them a role. /rank shows a rank card with a progress bar, and /leaderboard the top ten.

Plan: Paid. It reacts to messages, a server event, so it needs a gateway bot.
Add it to a server: https://app.buildcord.dev/templates/leveling

## What it does

1. A member sends a message. Bots are skipped, and each member earns XP at most once a minute.
2. The bot adds 15 to 25 XP to the member's row in the levels collection.
3. If that takes them to a new level, it congratulates them in the channel.
4. At levels 5, 10, 25 and 50 it gives them the role of that name.

## Commands

- `/rank`: Shows your rank card, or another member's: level, XP, progress to the next level and place.
- `/leaderboard`: Lists the ten members with the most XP.
- `/givexp`: Gives a member XP, or takes it away. Needs the Manage Server permission.
- `View rank`: Right-click a member, then Apps, to see their rank card.

## Before you add it

- Roles named Level 5, Level 10, Level 25 and Level 50, if you want level rewards. Without them, members still level up.
- The bot's role placed above those roles, so it can give them.

## What you can change

- Change how much XP a message earns, or how often.
- Make levels quicker or slower by changing the equation.
- Announce level-ups in one channel instead of where the member chatted.
- Add or rename the reward roles in the Switch step.

## Questions

### How are levels worked out?

A member's level is the square root of their XP divided by 100, rounded down: 100 XP is level 1, 400 is level 2 and 2,500 is level 5.

### Why does it need the Paid plan?

Earning XP for chatting means the bot has to see messages as they're sent, which needs it connected to Discord all the time. That's a gateway bot, on the $8-a-month Paid plan.
