Docs: the level system
How the level system works: where XP comes from, how we block farming and how to set up rewards.
1. Earning experience (XP)
Our system is based on smartly awarding points for real activity. Every text message gives 15 to 25 XP (default values that you can change in the dashboard). The formula for advancing to the next level uses the math known from the biggest bots on the market:
Besides text chat, members are rewarded for time spent in voice channels. By default this is 10 XP for every minute spent in a channel (as long as the microphone and headphones are not muted).
2. Protection against XP farming
This is not an ordinary system that you can cheat by sending random letters. Fixsubot has several safeguards against XP farming:
- 5-second cooldown: A member gets XP for at most one message every 5 seconds. This protects against chat spam.
- Levenshtein distance algorithm: The bot analyzes the content of every message. If your new message is within 80% or more similar of the previous one (e.g. sending "hahaha" or the same sentence over and over), XP is blocked.
- RAM buffering: Instead of needlessly loading the database after every message (a 99% reduction in IOPS queries), XP points are safely buffered in RAM and written to the server every 60 seconds.
3. Multipliers
Want to reward your supporters or encourage players to chat in a specific channel? FixsuBot lets you set XP multipliers:
- Role multipliers: For example, set 1.5x XP for members with the VIP or Server Booster role.
- Channel multipliers: You can set it so that in the #main-discussion channel members get 2x more XP, to steer traffic there.
- Multipliers stack: a VIP member in a special channel gets gains multiplied by both factors!
4. Level rewards and economy
Gaining levels isn't just numbers, it brings real benefits for your community:
- Level roles: The bot automatically assigns new roles when a member reaches a defined level. You can also turn off role stacking (non-stacking rewards), in which case the bot removes the old role and assigns the new one (keeping profiles tidy).
- Coins for leveling up (economy): After leveling up, a member can receive a reward in the server's virtual currency, which fits neatly with the Economy module and the virtual shop.
- Custom notifications: Set up level-up notifications (in the current or a dedicated channel) using nice, configurable embeds.