Skip to content

Instantly share code, notes, and snippets.

@buthed010203
buthed010203 / info.md
Last active October 13, 2020 14:42
XP Rank System

Setup & Usage

The main command should be of type regex, the trigger should be .* like so. image The command has a few config options at the top:

  • $channel can be set to either 0 or a channel ID. If specified rankup messages will be sent to that channel, otherwise they are sent to the channel where the user ranks up.
  • $cooldown is the cooldown in seconds between messages which are counted towards the user's total message count, this is to prevent spam.
  • $ranks are the actual roles which are assigned to the user at specific message counts, you may add as many ranks as you want in the format of (cslice <roleid> <msg-required>)
  • $prefix Removed for now is the prefix to your commands, this will allow you to match your server prefix if needed.
    To complete the setup type -config, this will update your settings and inform you if anything is setup incorrectly.
    Once you have completed the setup correctly, you will be able to use -rank and `-le