write a reply that I say: “Thanks for the update. Glad to hear that resetting the levels…
- User
write a reply that I say: “Thanks for the update. Glad to hear that resetting the levels and XP helped stop the issue for now.
Since the totalXp stays at 0 but the individual XP variable is changing, it does sound like there might be something going on either with how totalXp is being updated or saved, unless the app developers are changing some functions or bugging them. 😅
A couple of things you could try/check:
- Confirm that totalXp is being properly incremented and saved after each message or XP gain, sometimes a small typo or logic issue can cause it to never update even if individual XP changes.
- Make sure you aren’t resetting totalXp accidentally anywhere else in your code besides the intended reset. 😉
- Correct, the function $resetUserVar is used just for the variable xp to be cleared after reaching another level so users can start back to 0 xp for the new higher xp requirement.
If you want, feel free to share a snippet of your XP update logic here and I can take a closer look to help pinpoint what might be going on.
Glad to assist and happy to help get this running smoothly again. Let me know how it 🙂 goes. 🙂” so I can reply to Bot Designer customer
- Assistant
Sure! Here's a polished reply you can send to the Bot Designer customer:
Thanks for the update! Glad to hear that resetting the levels and XP helped stop the issue for now.
Since totalXp stays at 0 while the individual XP variable is changing, it does sound like there might be something going on with how totalXp is being updated or saved—unless the app developers have changed or introduced bugs in some functions. 😅
A couple of things you might want to try or check:
- Confirm that totalXp is properly incremented and saved after each XP gain. Sometimes a small typo or logic mistake can cause it to never update even though individual XP changes.
- Make sure totalXp isn’t being reset accidentally anywhere else in your code outside of the intended reset points. 😉
- Correct—the function $resetUserVar is meant for clearing the xp variable after reaching a new level, so users can start back at 0 XP for the new, higher XP requirement.
If you want, feel free to share a snippet of your XP update logic here and I can take a closer look to help pinpoint what might be going on.
I’m happy to assist and help get this running smoothly again. Let me know how it 🙂 goes. 🙂