> For the complete documentation index, see [llms.txt](https://info.rovastudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://info.rovastudio.com/community/message-counting.md). Agents can also search and read this documentation through its [MCP server](https://info.rovastudio.com/~gitbook/mcp).

# Message counting

Message counts per member and a leaderboard, handy for activity checks, giveaways and competitions.

Rova counts how many messages each member sends on your server. **It's on by default** from the moment Rova joins, so there's nothing to set up unless you want to change something.

{% hint style="info" %}
Rova stores a member's ID, username, message count and the time of their last message. It doesn't store what they wrote. Counting only starts once Rova is on your server and can see the channel, so older messages aren't included.
{% endhint %}

Bots, system messages, `!tag` calls and plain `@Rova` mentions aren't counted.

### Commands anyone can use

| Command                 | What it shows                                                                                                        |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `/messages count user:` | A member's count and when they last posted. Leave `user` empty for your own.                                         |
| `/messages leaderboard` | Everyone, most messages first, with your own position at the bottom. The page buttons stop working after 10 minutes. |
| `/messages all`         | The total for the whole server.                                                                                      |

### Commands for staff

| Command                            | What it does                                               |
| ---------------------------------- | ---------------------------------------------------------- |
| `/messages add messages: user:`    | Adds to a member's count.                                  |
| `/messages remove messages: user:` | Takes away from a member's count. You can't go below zero. |
| `/messages reset user:`            | Sets a member back to zero.                                |
| `/messages server-reset`           | Resets **everyone** on the server.                         |

If you leave out `user`, the command applies to you. There's no undo for resets and no extra confirmation, so double-check first.

Administrators can use these by default. To choose who else can, run `/permission messages` once per command and mention the roles.

{% hint style="warning" %}
Once a command has roles set, only those roles can use it, and administrators aren't exempt. Add your admin role too if you want it included.
{% endhint %}

### Settings

`/config messages` is for administrators. Set whichever options you want to change:

| Option            | What it does                                                                                                                   |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `status`          | `Activate` or `Deactivate`. Deactivating stops the counting and blocks all the `/messages` commands. Existing counts are kept. |
| `log_channel`     | Where add, remove and reset actions get logged.                                                                                |
| `number_format`   | Thousands separator: `.` (1.000) or `,` (1,000).                                                                               |
| `reason_required` | If `Yes`, staff must give a reason when changing counts.                                                                       |

### Related

* [Key concepts](https://info.rovastudio.com/start/concepts.md)
* [Privacy Policy](https://info.rovastudio.com/privacy.md)
