[KIAI-357] Voice XP Sessions not properly canceled

Hello! I recently set up the bot in my server, a member leveled up and went straight from level 22 to level 71. I'm not server what happened.
Solution:
This bug has been fixed! Thanks for letting us know about it
Jump to solution
42 Replies
EasyThreads
EasyThreads2w ago
Hey @Aiden! Our team will answer your post soon. If this is an issue in your server, make sure you've included your server's ID (This can be found on the /ping command), as well as which users are having this issue. Once your question has been answered, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution to help others find the solution via Answer Overflow
Aiden
AidenOP2w ago
Server ID: 706294603468243015
SamBee 🐝🌈
Hey @Aiden, pushed this internally so we can look at what happened. Could you also provide the user ID for the affected member?
Aiden
AidenOP2w ago
Yes 763461725554343969
Shadow
Shadow2w ago
Hi! Looks like you changed the leveling formula in your server which caused the bot to recalculate everyone's level based on the new formula, which caused this jump @Aiden The bot only stores XP internally, the user's level is calculated on the fly based on the formula set
Aiden
AidenOP2w ago
Yes! The formula is very steep, other people have been getting XP just fine I dont quite know what happened This is the formula 50 * ({level} * {level}) + {level} * 50 The user with the jump was level 22 Let me go check my logs and see how long she was in vc She was in vc for 48 minutes and I have it set to 9 xp per minute So she got 432 xp when she left vc Which was when she leveled up And with the formula it takes 56100 XP to level up from 22 to 23 She went from 22 to 71 So something bugged
Shadow
Shadow2w ago
Hmm yeah that new formula change shouldn't be that drastic I'm not able to dig in right now (IM GOING TO SEE WICKED!!) but I can dig in tonight
Aiden
AidenOP2w ago
AYEE have fun And alrighty sounds good
Kanban
Kanban2w ago
Task created! -# 97cf55a5-eab5-4354-93c5-5199a5de7c41
Shadow
Shadow2w ago
I didn't see anything glancing through the logs of the bot, I'm gonna pull up your server's data tomorrow and dig through it. Can you send an invite to your server?
Aiden
AidenOP2w ago
No description
No description
Aiden
AidenOP2w ago
This is the member that it happened to, this is her explanation of it LOL
Shadow
Shadow2w ago
No description
Shadow
Shadow2w ago
I do see reenabling of voice xp and message xp about 30 minutes before that, I wonder if somehow it was still tracking voice minutes and thats what made it shoot up, like it got disabled while they had a voice session active maybe? @net-tech- pinging you in here to take a look
Shadow
Shadow2w ago
No description
oopsieedaisiee
Hi thanks for helping with the problem !!! Is there any chance while your looking into it you could make me back to the level I was before ❤️ just to make it less confusing for players 😇 Thanks for looking into it !!!
Shadow
Shadow2w ago
@Aiden can set your level with the /xp command :)
Aiden
AidenOP2w ago
Gagged Thank you LOL Also random question, since the bot tracks time in VC, is there any sort of way to see how much time a user has spent on vc?
Shadow
Shadow2w ago
There's a voice minutes leaderboard
Kiai
Kiai2w ago
Buape Studios
Voice Minutes Leaderboard
1. <@439223656200273932> - 68 minutes - <@829909201262084096> - 67 minutes - <@314219277546946561> - 60 minutes - <@276497792526974996> - 22 minutes - <@315039888850288641> - 6 minutes - <@97268410836062208> - 4 minutes - <@1295002893853655111> - 0 minutes - <@386110084947902464> - 0 minutes - <@1056383394470182922> - 0 minutes - <@461862173044375572> - 0 minutes
Page 1 of 16
Aiden
AidenOP2w ago
Thank you ‼️ I think I found something related to the bug with Daisie's XP...
Aiden
AidenOP2w ago
No description
Shadow
Shadow2w ago
That...... is a lot of voice minutes
Aiden
AidenOP2w ago
Don't quite know how that happened!
Shadow
Shadow2w ago
The way our voice system works, is that it tracks “events “such as user joining the voice chat, user, leaving the voice chat, when they mute and unmute, etc. I’m wondering if they had started a Voice XP session in the bot and it tracked when they joined, but then the Voice XP system was disabled, so it never saw them leave, and then when you enabled it the next time, it had an end event for that voice section, and just calculated all of the time between If there’s typos blame Siri
Aiden
AidenOP2w ago
The bot has been in my server since the 6th, and has had voice XP on since yesterday morning ahhhh I bet thats what happened! Daisie is in vc a lot and I do believe I was in VC when I disabled voice XP at the beginning of the month So she was likely there with me LOL
Shadow
Shadow2w ago
Do you need me to bring their voice minutes down? If so, what should I set them to
Aiden
AidenOP2w ago
I have another bug/question I'm about to calculate, I have a log system that shows when people join and leave vc! Give me a few minutes to check Also, on my screen some of the people on the voice leaderboard only shows up as their user ID's, and then on another members screen it shows it for different people
Aiden
AidenOP2w ago
No description
Shadow
Shadow2w ago
That's just a Discord bug, those people aren't cached in your client
Aiden
AidenOP2w ago
Ah I see What does that mean LOL
Shadow
Shadow2w ago
They aren't online/haven't sent messages/some other reason which is causing your client to not know anything about them except their user ID, and your client doesn't fetch them because that would end up spamming the api if there are a lot of them Some client mods have fixes for this, or if you click the member in the member list or mention them yourself and click on that, they'll show up properly because you made your client fetch them
Aiden
AidenOP2w ago
Can you set Daisie to 225 minutes please! Ahhhh I see, thank you!
Shadow
Shadow2w ago
set!
Aiden
AidenOP2w ago
Thank you! I have another random question 😭
Aiden
AidenOP2w ago
Is there anyway to set it where this just says the text and not the image
No description
Aiden
AidenOP2w ago
Like in a format more like this
Aiden
AidenOP2w ago
No description
Aiden
AidenOP2w ago
So it takes up less space :crownsmile:
Shadow
Shadow2w ago
:kek: no, #kiai-suggestions
Solution
Shadow
Shadow2w ago
This bug has been fixed! Thanks for letting us know about it
Want results from more Discord servers?
Add your server