# Sources

You need to know from which of your links members are coming?&#x20;

<figure><img src="https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FzPWuh43z8Ym2JpXnn6zU%2Fimage.png?alt=media&#x26;token=f48175c0-eb91-4fda-a406-87f77502c9ce" alt=""><figcaption></figcaption></figure>

The source system is made for you !

This feature allows to link invite codes to an human friendly name, for better traffic understanding

## List existing sources

![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FNMXuphfowKO3koW88Zry%2Fimage.png?alt=media\&token=89c2838d-c625-4d18-8591-f00074959d26)

You can list existing sources with the **/sources list** command

## Show sources graph&#x20;

***⚡ NEW: You can now access to a nice source chart***

![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FLSPIEt3zks3BjpNDFuIG%2Fimage.png?alt=media\&token=25e81e2c-479c-4a42-9cce-13d75f0511e9)![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_7KWGOtXaonSVC9Jd%2Fuploads%2FKSCnCCSIvOqTUknWtJ72%2Fimage.png?alt=media\&token=32c05f95-9c11-4857-8305-e44febc7df9c)

You can get an overview of your sources with the **/sources stats** command

## Setup sources

Example: You need to post your server invite link on your twitter bio and you want to know who comes from this link.

{% hint style="danger" %}
You need to create an unique invite code for each sources.
{% endhint %}

#### 1- Create your source&#x20;

Firstly you have to create an invite link which will be dedicated to this source.&#x20;

Then run the `/sources add <name:SourceNameHere> <code:inviteCodeHere> <give-role: yes | no> [description:Description of the source]`&#x20;

{% hint style="info" %}
If you've chosen to give a role, please ensure the bot has correct permissions to manage roles and its own role is higher than the role to give
{% endhint %}

#### 2- Setup the source in your join message

Edit your join message to add the `{sourceMessage}` placeholder which will be replaced by the source message&#x20;

![](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MW_7KWGOtXaonSVC9Jd%2F-MX7cGM6DUJE--n5OxFD%2F-MX7cw24uRzabtEICOz3%2FsourceConfigAddToMsg.gif?alt=media\&token=d7c0b57c-c54e-42fe-a9d1-683874548015)

![The result](https://1233429419-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MW_7KWGOtXaonSVC9Jd%2F-MX7cGM6DUJE--n5OxFD%2F-MX7dFSudlDNHQ70fnyB%2Fimage.png?alt=media\&token=d9d10523-d5ba-4aad-8979-9c67f2b074bc)

#### 3- (optional) Edit the sourceMessage

To edit the default sourceMessage, you can use the `/sources setMessage` and click on the pen.
