XP System

๐Ÿ“Š XP System

The Nova AI XP System is the core mechanic that powers the leveling progression. This page explains how XP is earned, calculated, and applied to your level.

๐ŸŽฎ Earning XP

XP (Experience Points) is awarded when you use bot commands. Different commands award different amounts of XP based on their complexity and value.

๐Ÿ“‹ XP Sources

Activity Type
XP Range
Probability
Examples

Chatbot Interactions

20-40

100%

Chatting with the AI

Fishing/Mining

15-30 XP

75%

/fish, /mine

Gambling Commands

10-20 XP

50%

/coinflip, /slots

๐ŸŽฒ Probability Factor

Not every command execution guarantees XP. Each command has a probability percentage that determines the chance of receiving XP. This randomness adds an element of surprise and prevents XP farming.

๐Ÿ”„ XP Cooldowns

While not explicitly implemented, the probability system naturally creates an effective cooldown, as rapid command usage doesn't guarantee XP for every action.

๐Ÿš€ XP Boosters

The system includes two types of XP boosters that can increase the amount of XP earned:

โญ Premium Boost

Premium users receive a permanent +50% XP boost on all commands.

Example:

  • Base XP from command: 20 XP

  • With Premium: 30 XP (+50%)

๐Ÿ”‹ XP Booster Item

The XP Booster is a temporary item available in the shop that provides +50% XP for 12 hours.

Example:

  • Base XP from command: 20 XP

  • With XP Booster: 30 XP (+50%)

๐Ÿ’Ž Stacking Boosters

Premium status and XP Booster items stack multiplicatively:

Example:

  • Base XP from command: 20 XP

  • With Premium (+50%): 30 XP

  • With Premium AND XP Booster: 45 XP (+125% total)

๐Ÿ“ˆ Level Calculation

The system uses an exponential curve to determine level progression:

๐Ÿงฎ XP Formula

The XP required for each level follows this pattern:

Level 1 โ†’ 2: 50 XP
Level 2 โ†’ 3: 75 XP (50 * 1.5)
Level 3 โ†’ 4: 113 XP (75 * 1.5)
Level n โ†’ n+1: previous_level_XP * 1.5

๐Ÿ“Š XP Table

Level
XP Required
Cumulative XP

1

0

0

2

50

50

3

75

125

4

113

238

5

169

407

10

854

2,828

15

2,440

11,419

20

6,966

38,474

25

19,890

129,686

30

56,796

437,262

50

3,767,367

56,510,499

๐Ÿ“‰ Level Determination

The system calculates your current level based on your total accumulated XP:

  1. Start at level 1

  2. Check if total XP exceeds the requirement for the next level

  3. If yes, increment level and repeat

  4. If no, current level is determined

๐Ÿ” XP Tracking

Your XP progress is visualized in several ways:

๐Ÿ“Š Progress Bar

The profile command displays a visual progress bar showing your advancement toward the next level:

Level 15 | โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ | 500/2440 XP (20.5%)

๐ŸŽฏ Level-Up Notifications

When you earn enough XP to level up, you'll receive a notification:

๐ŸŒŸ Level Up! ๐ŸŒŸ
Congratulations @User! You've leveled up!

Level Progress
Level 14 โ†’ Level 15

If the level up also results in a rank change, the notification will include that information as well.

๐Ÿ› ๏ธ Technical Implementation

The XP system is implemented using a decorator pattern:

This decorator automatically handles:

  • Random XP amount determination

  • Probability check

  • XP booster application

  • Level up detection

  • Notification sending

๐Ÿ’ฌ Chatbot XP

In addition to commands, users can earn XP simply by chatting with the AI bot. Every message sent to the bot has a chance to award XP, encouraging natural conversation and engagement.

Last updated