Skip to content

Bot joins the channel but plays no sound. Help? #9652

Answered by tailoric
kelly1266 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You should not time.sleep(1) ever in your bot. Discord.py is an async library and therefore if you need to wait something use await asyncio.sleep() instead See here
  2. You don't need to do a waiting loop, play has an after keyworded argument that will call a function upon completion of the file. You could do the disconnect in the after function. See here for how to do it with an async function

I am not 100% sure if this is the solution to your problems but it could be. At least blocking the bot for the duration of the audio file should not happen. Otherwise try to update to the current git version since there have been a few fixes related to voice functionality added to master which aren't…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kelly1266
Comment options

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