A few days ago my bot has stopped working i updated my package.json folder and then i reinstalled discord.js but its giving these errors when i try to install any package stuff.
My project’s name is hinata-bot
npm WARN deprecated [email protected]: use node-fetch instead
npm WARN [email protected] requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
When i try to open a music with my music on discord bot connects to voice channel then after a sec it leaves.
I think that’s a problem with ffmpeg or other packages.
it could be your project reaching the max memory usage when using the music, I suggest having the music on a separate project if possible so it gives it some extra memory and then the rest of the bot on another project, Glitch is not really the best for music bots currently, but in the future you will be able to expand your projects memory, and then you can keep the music with your bot.
Can you try playing a song, and keep checking the projects logs,and when the music stops and the bot disconnects from the channel, can you tell me if the logs say anything that would be in red text!