Hey I am creating a leveling system and I am using a text file (xp.txt) to keep track of the player’s xp. But the problem is that nothing is being written into the file with no errors being shown. `bot.on(‘message’, (message) => {
The file write is happening, but you need to run refresh in the console to see the changes that took place. This is because the project files are not in sync with the code, and any file modifications created using code requires the refresh command to be run in the console.
Do it in the same project. Add a script that just says process.exit() and run that to avoid any 429 errors. If you need any help, with anything else, feel free to DM me.