Replies: 6 comments 2 replies
-
the bot have another problem, when i pause the music for too long, reactions icon disappear and we cant play again the music :/ |
Beta Was this translation helpful? Give feedback.
-
u can use the play command to continue playing music |
Beta Was this translation helpful? Give feedback.
-
if you use play command, it will ask for new song that you want to play. try resume command |
Beta Was this translation helpful? Give feedback.
-
add this to include/play.js
You can edit the message to whatever you want... |
Beta Was this translation helpful? Give feedback.
-
why this not working now? @ParasDeshpande |
Beta Was this translation helpful? Give feedback.
-
The easiest way is to use the voiceStateUpdate event, this will emit whenever a members' voice state changes, for example, if they leave or join a voice channel. First, check if a user left a channel, then check if that channel only includes 1 person, which is the bot, and if so leave the channel. Add this code into the index.js file, under client.on('voiceStateUpdate', (oldState, newState) => {
if (oldState.channel && oldState.channel.members.size === 1 && oldState.channelID === oldState.guild.voice.channelID) {
oldState.channel.leave()
}
}) |
Beta Was this translation helpful? Give feedback.
-
Its all in the title :)
If someone create a loop the bot will play music indefinitly its possible to add some line in play.js in the folder "includes" for the bot detecting if nobody in the voice canal, he go out..
Beta Was this translation helpful? Give feedback.
All reactions