Actions

This page will guide you through how to setup assignable and removable voting roles for your server or bot when a user a votes or gets a certain number of votes. These are fully customisable and allow you to have loads of personalised autoroles and complicated set of rules.

Actions are written in a sort of pseudocode and follow basic computer logic to allow users to fully customise them. If you aren't familiar with pseudocode or programming, you can use the commonly used examples found lower down the page and/or ask for help on our support server. You can also make use of our placeholders in your custom actions

This is an advanced version of autoroles, if you have no interest in making complicated autoroles for your server/bot, we highly recommend you ignore this page and read the Autoroles page.

Usage

Most Commonly Used

The most common way it is used in servers is to reward users when they get a certain number of votes, for example if they get 4 votes, they get the "4 Votes" role. And usually once they reach 8 votes and get the "8 Votes" role, they lose their previous "4 Votes" role. Then when they get 12 or more votes, they lose their "8 Votes" role and get the "12+ Votes" role.

This is what it commonly looks like. You can copy paste the lines below and put in your own values & role names.

vt!actions add GIVE ROLE("Voter", "12h")

vt!actions add IF (%user#votes% >= 4) { GIVE ROLE ("4 Votes") }

vt!actions add IF (%user#votes% >= 8) { GIVE ROLE ("8 Votes") REMOVE ROLE ("4 Votes") }

vt!actions add IF (%user#votes% >= 12) { GIVE ROLE ("12+ Votes") REMOVE ROLE ("8 Votes") }

Examples

Important Notes

  • Indentation is not required for it to work, it's used to make it easier to read.

  • The operations you can use in the IF statements are=,!=,>=,<=,<=,-,*,+,/

  • Quotation marks are required when using emojis or mixing numbers and letter e.g. GIVE ROLE (Voted) orGIVE ROLE ("Voted 2x")

Last updated