asyncio.TimeoutError not working or just i dont know how to use it??? #491
-
So i have a working music bot.
And I want to make the bot leave when nobody commands the bot to do anything after it finishes playing the final song. So according to the docs, i should use the bot.wait_for, add the command parameter in strings, add the timeout and do a check. But right now, i am not getting into the except P/s: i did 5 seconds timeout, 30 seconds and even 120 seconds. If that makes any difference lol |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
run_coroutine_threadsafe returns a Future. Exceptions raised in the coroutine will be propagated to the Future. In any case, you really shouldn't be using running coroutines like this. |
Beta Was this translation helpful? Give feedback.
run_coroutine_threadsafe returns a Future. Exceptions raised in the coroutine will be propagated to the Future. In any case, you really shouldn't be using running coroutines like this.