X
X
x4zx2021-08-19 17:05:31
Python
x4zx, 2021-08-19 17:05:31

What to do gives such an error?

Launched the bot on heroku, and got an error after entering the play command
What to do please tell me :28.833312+00:00 app[worker.1]: future: exception=OpusNotLoaded()> 2021-08-19T14:02:28.833312+00:00 app[worker.1]: Traceback (most recent call last): 2021 -08-19T14:02:28.833314+00:00 app[worker.1]: File "/app/cogs/musik.py", line 156, in player_loop 2021-08-19T14:02:28.833314+00:00 app [worker.1]: self._guild.voice_client.play(source, after = lambda _: self.bot.loop.call_soon_threadsafe(self.next.set))

2021-08-19T14:02:28.833315+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/discord/voice_client.py", line 564, in play
2021-08-19T14:02:28.833315+00:00 app[worker.1]: self.encoder = opus.Encoder()
2021-08-19T14:02:28.833326+00:00 app[worker.1] : File "/app/.heroku/python/lib/python3.9/site-packages/discord/opus.py", line 289, in __init__
2021-08-19T14:02:28.833326+00:00 app[worker. 1]: raise OpusNotLoaded()
2021-08-19T14:02:28.833327+00:00 app[worker.1]: discord.opus.OpusNotLoaded

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-08-19
@x4zx

To work with voice, you need the Opus library.
But if on Windows it is loaded by itself, on Linux it must be loaded by calling the .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question