Skip to main content

/autoroles stats set

Admin Command

This command requires administrator permissions.

(Ranks) Adds a condition in which player roles are changed based on stats.

Usage​

/autoroles stats set [role] [stat] [lower_rating] [upper_rating] (lower_lose_rating) (only_one_allowed)

Arguments​

  • role: (Required) Role.
  • stat: (Required) Stat the rule is based on (winrate is a percentage from 0 to 100).
  • lower_rating: (Required) The lowest stat value required to gain the role.
  • upper_rating: (Required) The upper stat value to lose the role.
  • lower_lose_rating: (Optional) (Default: lower_rating) The stat value the player must fall below to lose the role.
  • only_one_allowed: (Optional) (Default: True) While a player has this role, no other overlapping role of this stat is added.

Details​

Creates a rank role rule for the queue in this channel (running it again for the same role and stat replaces that rule). A player gets the role when their stat is at least lower_rating and below upper_rating, and loses it when the stat reaches upper_rating or falls below lower_lose_rating, which defaults to lower_rating; set it lower to give players a buffer before they drop a rank. The stat is the player's stat in this queue (queues sharing a stats system share it), except Points and MVPs which are server-wide totals, and winrate is a percentage from 0 to 100. Saving the rule immediately re-checks every player in the server, so roles are given and taken away right away, and players are DMed about the change unless /autoroles notify is off; players are also re-checked after each of their matches. When several rules for the same stat overlap, only_one_allowed stops further roles of that stat being added to a player who already has an only-one role they still qualify for; it does not remove roles they hold. The rule is rejected if the bot lacks Manage Roles or its top role is below the role, and the reply warns about gaps in your ranges (lower bounds are inclusive, upper bounds exclusive).

Required Permissions​

Permission Required

This command requires either:

  • A configured NeatQueue Staff Role
  • Manage Channels permission