-
Couldn't load subscription status.
- Fork 0
Installing libsodium
rubycord uses RbNaCl to encrypt voice communication, which uses libsodium internally. RbNaCl is automatically installed together with rubycord, but libsodium will have to be installed separately. If you're not interested in voice support, it's two lines of output you can ignore, don't worry about it!
Alternatively, you can create a RUBYCORD_NONACL environment variable with any value to suppress the message.
libsodium is covered by an ISC license, available here.
If you're on Linux, just install libsodium from your favourite package manager and it should work by itself. Note that, depending on your distribution, you may also need to install development headers.
On Windows, follow these steps:
- Download the latest
libsodium-X.Y.Z-msvc.zipfrom here. - From the downloaded zip file, extract the
x64/Release/v120/dynamic/libsodium.dllfile to somewhere. - Copy that to any folder within the Ruby
$LOAD_PATHorC:\Windows\System32and rename it tosodium.dll.
You can add a folder to your $LOAD_PATH either at runtime or via the -I command line flag (ruby -I ./my_dlls bot.rb).
You can also read about process of installation here.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install libsodium