Closed MoustacheOff closed 2 years ago
Node.js version: 18.10.0 Discord.js version: 13.11.0 FFmpeg version: 5.0.1
Also tested with Node.js version 16.17.1
(LTS)
[2022-10-09 11:22:22 (+02)] [error]: UNCAUGHT_EXCEPTION: Error: Cannot play audio as no valid encryption package is installed.
- Install sodium, libsodium-wrappers, or tweetnacl.
- Use the generateDependencyReport() function for more information.
Looks like for some reason, tweetnacl
is not detected by the voice module.
If you're using glitch, try typing space (`) in .env file. Glitch will automatically fully restart the bot and trigger the module re-installation in
index.js`.
Or if you're running it on your local machine, try re-installing all package by running npm i
and then restart the bot.
[2022-10-09 11:22:22 (+02)] [error]: UNCAUGHT_EXCEPTION: Error: Cannot play audio as no valid encryption package is installed. - Install sodium, libsodium-wrappers, or tweetnacl. - Use the generateDependencyReport() function for more information.
Looks like for some reason,
tweetnacl
is not detected by the voice module.If you're using glitch, try typing space (
`) in .env file. Glitch will automatically fully restart the bot and trigger the module re-installation in
index.js`.Or if you're running it on your local machine, try re-installing all package by running
npm i
and then restart the bot.
Just tried, still doesn't work. I'll try to reinstall the packages manually.
I tried to reinstall tweetnacl manually it still doesn't work but the package appears in the node_modules
folder.
I also tried hosting it on my computer and there's still the same issue.
Can anyone else try it themselves? Because it's a real issue.
I got the same error too, but still didn't find any solution. Perhaps changing the STREAM_STRATEGY
config?
Try install npm i @discordjs/voice@0.11.0
For windows (requires):
For Ubuntu (VPS only), typing: sudo apt install -y gcc g++ make
.
And if there is an error during installation: sudo apt install -y python-is-python3
This issue comes back with 763d57027a9ee2418d470b22f179245a26dd7750. @discord.js/voice should be downgraded to 0.11.0.
Describe the bug
Everytime a command is used the bot reloads (/ping seems to work fine but the rest of the commands are glitched)
To Reproduce
/play
Expected behavior
No response
Screenshots
Operating System
Ubuntu/Linux
Additional context
Yesterday, the bot didn't have this issue. I tried redoing it with the latest commit
7010b56
and it's doing the same thing.