15 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffask topgg
Why topgg?
because it's trying to connect to topgg but gettinga 401
No kidding, this is a development bot.
never mind im sort of blind
ignore me
Ok
my session this destroy
https://sourceb.in/DO9n8gJCb8 in this way?
However, is it a good idea to store the session in a JSON?
https://sourceb.in/JobnFOp6TE
Here I applied what you told me, so that you like it should work properly?
As for shardscount, is there an ideal maximum? Because I did not see in the docs the possibility to put them in auto
What foolishness are you talking about?
I removed the else, in order to have only the first condition
https://sourceb.in/5bbTEZC2DW
Here are the changes made based on what you told me
https://sourceb.in/AR1SbaLXyS
like this
However, I do not feel that it does not really work because I launched the bot and then stopped for a few seconds while making commands but the bot is not usable
ah
Yes but a restart is the same as killing a node
There is no interruption
How do I update without interrupting then? lol
the bot
Any, when I make changes on the bot, it can be commands, events, new content
let me explain
Initially the bot is start
I import my new files into the bot folder, then run
npm run build
which will create an update to the /dist
After that I run pm2 restart
which will restart the bot to use updated files in the ./dist
no la I just have ctrl c
npm run start
There I just did with PM2, it makes well a stop
What do you mean?
Let’s say that in itself I don’t care, if the commands do not react it is the vocals that matter to me
The bot makes music, if it loses the vocal, it’s not good
I use lavalink
client: lavalink-client
Yes I know this is already implemented in their system
I send a name, or link, and it sends a request to the lavalink which returns me the sound
spotify, deezer etc etc
I agree with the sources used so it is not a violation in my case
if...
look well