Created
March 20, 2025 17:19
-
-
Save KOULIKS94/32a11bd6ecd10c4ed721d27588146db8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const userXP = {}; | |
| bot( | |
| { | |
| pattern: 'rank', | |
| desc: 'Check your level', | |
| type: 'leveling', | |
| }, | |
| async (message) => { | |
| const user = message.sender; | |
| userXP[user] = (userXP[user] || 0) + 1; | |
| const level = Math.floor(userXP[user] / 10); | |
| await message.send(`🎖 *Level:* ${level}\n💬 *Messages Sent:* ${userXP[user]}`); | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment