Skip to content

how to make evo bot stay in ? #333

Answered by mihawkman
shadmehr-salehi asked this question in Q&A
Discussion options

You must be logged in to vote

In the include/play.js... replace queue.channel.leave(); with

setTimeout(function() { if (!queue.connection.dispatcher && message.guild.me.voice.channel ) {queue.channel.leave(); queue.textChannel.send("I have left the channel. See you again.").catch(console.error);} else return },300000);

the 300000 is ms ( 5 mins)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mihawkman
Comment options

@mihawkman
Comment options

@Apoo711
Comment options

@Apoo711
Comment options

@villagerrrrrrrrr
Comment options

Answer selected by shadmehr-salehi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants