[KIAI-357] Time in VC Jump

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
50 Replies
EasyThreads
EasyThreads2mo 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
AidenOP2mo ago
Server ID: 706294603468243015
SamBee 🐝🌈
SamBee 🐝🌈2mo ago
Hey @Aiden, pushed this internally so we can look at what happened. Could you also provide the user ID for the affected member?
Aiden
AidenOP2mo ago
Yes 763461725554343969
Shadow
Shadow2mo 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
AidenOP2mo 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
Shadow2mo 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
AidenOP2mo ago
AYEE have fun And alrighty sounds good
Kanban
Kanban2mo ago
Task created! -# 97cf55a5-eab5-4354-93c5-5199a5de7c41
Shadow
Shadow2mo 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
AidenOP2mo ago
No description
No description
Aiden
AidenOP2mo ago
This is the member that it happened to, this is her explanation of it LOL
Shadow
Shadow2mo ago
No description
Shadow
Shadow2mo 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
Shadow2mo ago
No description
Daisie <3
Daisie <32mo ago
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
Shadow2mo ago
@Aiden can set your level with the /xp command :)
Aiden
AidenOP2mo 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
Shadow2mo ago
There's a voice minutes leaderboard
Kiai
Kiai2mo 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
AidenOP2mo ago
Thank you ‼️ I think I found something related to the bug with Daisie's XP...
Aiden
AidenOP2mo ago
No description
Shadow
Shadow2mo ago
That...... is a lot of voice minutes
Aiden
AidenOP2mo ago
Don't quite know how that happened!
Shadow
Shadow2mo 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
AidenOP2mo 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
Shadow2mo ago
Do you need me to bring their voice minutes down? If so, what should I set them to
Aiden
AidenOP2mo 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
AidenOP2mo ago
No description
Shadow
Shadow2mo ago
That's just a Discord bug, those people aren't cached in your client
Aiden
AidenOP2mo ago
Ah I see What does that mean LOL
Shadow
Shadow2mo 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
AidenOP2mo ago
Can you set Daisie to 225 minutes please! Ahhhh I see, thank you!
Shadow
Shadow2mo ago
set!
Aiden
AidenOP2mo ago
Thank you! I have another random question 😭
Aiden
AidenOP2mo ago
Is there anyway to set it where this just says the text and not the image
No description
Aiden
AidenOP2mo ago
Like in a format more like this
Aiden
AidenOP2mo ago
No description
Aiden
AidenOP2mo ago
So it takes up less space :crownsmile:
Shadow
Shadow2mo ago
:kek: no, #kiai-suggestions
Solution
Shadow
Shadow2mo ago
This bug has been fixed! Thanks for letting us know about it
Aiden
AidenOP2mo ago
helloooo I have another bug that relates to the old one The same user had another voice jump Sometime between yesterday and a few minutes ago they randomly gained around 3000 minutes
Strife
Strife2mo ago
Thanks for letting us know I'll inform the Devs 🙂
Aiden
AidenOP2mo ago
.
Codeize
Codeize2mo ago
@Aiden just pinging you here for visibility ^
Aiden
AidenOP2mo ago
Thank you!!! If you guys could remove 1500 minutes from the user ID 763461725554343969 in this server: 706294603468243015 And I will remove the XP
Shadow
Shadow2mo ago
@Kiai eval kiai.db.userGuildData.update({ where: { userId_guildId: { userId: "763461725554343969", guildId: "706294603468243015" } }, data: { voiceMinutes: { decrement: 1500 } } })
Kiai
Kiai2mo ago
{
userId: '763461725554343969',
guildId: '706294603468243015',
avatarUrl: 'https://cdn.discordapp.com/avatars/763461725554343969/fc7e9d137007555c8e767d7cb181036d.webp',
createdAt: 2024-11-25T17:21:36.782Z,
updatedAt: 2024-12-18T21:42:32.209Z,
xp: 51021,
messagesSent: 834,
voiceMinutes: 6654,
rankCardBackground: null,
lastXp: null,
xpToday: 0,
currentXpStreak: 0,
streakDoneToday: false
}
{
userId: '763461725554343969',
guildId: '706294603468243015',
avatarUrl: 'https://cdn.discordapp.com/avatars/763461725554343969/fc7e9d137007555c8e767d7cb181036d.webp',
createdAt: 2024-11-25T17:21:36.782Z,
updatedAt: 2024-12-18T21:42:32.209Z,
xp: 51021,
messagesSent: 834,
voiceMinutes: 6654,
rankCardBackground: null,
lastXp: null,
xpToday: 0,
currentXpStreak: 0,
streakDoneToday: false
}
Type:
any<any>
any<any>
⏱ 5.68ms<320.84μs>

Did you find this page helpful?