connecting bots to vc
Can i keep more than one bot connected to different VC's using one script ?
3 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- 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!Each bot has their own connections, a bot can be connected to only single VC in a server. However you can run multiple bots in the same node process, if that's what you're asking, but i wouldn't say that's good practice
i'd like to try can u tell how i can achieve that or at least where i should look ?
how about using thread workers and run each bot instance in its own thread and that would also allow me to leverage other cpu cores instead of runnin all the bots on one core