Closed andersthemagi closed 3 years ago
Leveling has been implemented!
lvl = floor( current_xp ^ 1/4 )
!lb
and !rank
commands have been added to see your current rank and most xp accrued in the serverRead/Write to Remote SQL is a little slow (~2 to 5 secs per command), but there's not much to do on that. Might have to ask some experts at some point if there's a way I can speed that up at all.
Turns out repl's DB is actually static, it was just that I was deleting my data every time I ran the bot myself during testing. Using that and it reduces the bot command latency drastically.
Some action items to properly close out this module for now.
Code has been reorganized, commented, and streamlined slightly (changed from bubble sort for leaderboard to Python's built-in timsort algorithm). Should be able to close this out for real this time.
Famous last words...
Feature Description
A robust leveling system that assigns roles to people based on their current level.
Desired Solutions
Maybe something like this? https://www.youtube.com/watch?v=pKkrCHnun0M
Considered Alternatives
N/A
Additional context
N/A