# Vote Logging

First of all make sure you have purchased [premium](https://docs.tippy.cafe/french/premium/how-to-get)! And now make sure your server is listed on [top.gg](https://top.gg/servers) as well.

### Setup

Now, run the `*votesetup` command.

![](https://969810534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsqY5VJG714rN8YmRGm1g%2Fuploads%2FEY9OLlRLtnLtSvmwd5CY%2FvRIFDdfN.png?alt=media\&token=f6dd1a7a-afb5-4173-8fe7-a28685a06912)

#### This might seem a bit overwhelming, but I'll walk you through it

First, set a new top.gg key. Simply press the first red button, and type a password to use. This can be anything you want, but make sure to remember it and keep it somewhere safe!

{% hint style="warning" %}
Treat this key as a password! Users who are familiar with Top.gg and programming will be able to add extra votes to themselves or other users if they know this key.
{% endhint %}

Now, edit your server on top.gg, scroll all the way down to **"Server Webhooks"** In the URL field, put: `https://tippy.cafe/api/vote`. Don't forget to submit changes.

![](https://969810534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsqY5VJG714rN8YmRGm1g%2Fuploads%2F4Pj68BQFhAGtjyJmbuxL%2F4edcd2ad7a48ef26.png?alt=media\&token=f426a737-5543-4bce-b685-8e696525beff)

In the Authorization field, put the same password you entered before. Make sure to keep this secret, if a user obtains this password, they can fake votes.

You can now vote for your own server, then once you use the `*votes` command, it should show `1` now! If this is the case, everything is working correctly.

### Customization

#### Now, you can go onto more customization and setup for vote tracking.

To start out, you can add **role rewards**. To do this, press the 🏆 button. Then, add a role to the rewards like either like this `@1 Vote 1` or `820021746421465110 1`. The first argument is the role, which can be either a mention or an ID, and the second argument is the amount of votes needed. You can add up to 8 role rewards!

Optionally, you can also choose to remove the previous role when getting a new one. This makes sure a user doesn't end up with 8 roles after they reached the last goal, but instead, only with the highest reward role!

There's also a temporary role setting, to set this, click the ⏱ button, and mention a role or role ID. After you did that, this role will be given to anyone who votes, and automatically removed 12 hours later.
