-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading opus and sodium for voice #350
Comments
Please for questions, ask in our Discord server or the DAPI server. Thank you. |
Thanks for the understanding. I apologize for asking a question. However, I found a way to fix this issue and I'll just leave it here just in case. -- main.lua
local ffi = require('ffi')
ffi.load('opus')
ffi.load('sodium')
local discordia = require('discordia')
local client = discordia.Client()
client:on('ready', function()
local channel = client:getChannel('975077088103116891')
local connection = channel:join()
connection:close() -- This disconnects the bot from the vc
end)
client:run("Bot token") If you're on linux, here's the opus dlls: libopus.zip |
Your solution is quite wrong. You are on Linux, you use your package manager. If you are on debian-based system it will be something like (Yes, that means you don't need the so file in your bot directory) No one should distribute the so file because it won't work on all platforms, Linux has a package manager for a reason and it better be utilized. I told you to ask in our server because it is much easier for me to just do |
Every time I use the function
channel:join()
, it works perfectly fine as the bot joins the specific channel. However, I'm getting an output of libopus not found which make me worry. I already have the lib for opus and sodium and they're.so
file extensions due to me being in Linux.Using the voice document template, this is my current source code:
The text was updated successfully, but these errors were encountered: