> For the complete documentation index, see [llms.txt](https://infinitybot.gitbook.io/infinitybot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitybot.gitbook.io/infinitybot-docs/community-engagement/most-active-user-of-the-week.md).

# Most Active User of the Week

Weekly reward the most active user with a role, or just with a cool message

## Setup

You can start the setup with the `/set-up most-active-user` command.&#x20;

| Command Option Name | Function                                           |
| ------------------- | -------------------------------------------------- |
| action              | In this option, select the action you wish to take |

{% stepper %}
{% step %}
After running the command, you can select a channel where you want the bot to send a message to announcing the most active user.

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FzTPlhoABUNRRrqhs0Wfy%2Fimage.png?alt=media&amp;token=52f2d2f6-24ed-41e8-bb88-1f3a6621a229" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now you can set the content you want the message to contain. To do this, press the 'Set content' button. There are a few variables you can use for this, you can check them out in the [variable section](#variables).&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F6OF99Fy5RoKaoJejPpAu%2Fimage.png?alt=media&amp;token=70fc37af-e01f-40fc-86c8-b7223382bc4b" alt=""><figcaption></figcaption></figure>

After pressing the button, a forum will pop up where you can enter your content.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FzI8qtx2YGF3t5MjJKhBn%2Fimage.png?alt=media&amp;token=29b38c7b-e070-4c5a-8be5-02fb27573e25" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now you can select a role that you wish to be added to the most active user. This role will be added at the start of the week to the most active user, and be removed from the previous user.&#x20;

You can also use the blue button to create a role instead of selecting one, and using the red button you can also skip this step. If you skip, no role will be added to the user.

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FvUB7xGgc9qFDEomhozTz%2Fimage.png?alt=media&amp;token=8bebcee9-40ae-4938-b7f5-e11875d67ab5" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Variables

There is a set of variables that you can use in the content. A list can be found below:

| Variable      | Function                                               | Example output   | Example of usage                                                   |
| ------------- | ------------------------------------------------------ | ---------------- | ------------------------------------------------------------------ |
| `[user]`      | Ping the user that is the most active                  | @user            | \[user] congrats on becoming the most active user this week!       |
| `[user_name]` | Show the user name of the user that is the most active | notcastel        | \[user\_name] congrats on becoming the most active user this week! |
| `[server]`    | Shows the name of the server                           | 🪐Cosmos Lounge✨ | Congrats on becoming the most active user in \[server] this week!  |
