A discord bot written in the programming language Rust based off the Discord-rs library.
Required libraries to install in order to use the bot.
pkg-config libsodium opus openssl ffmpeg youtube-dl (sometimes libssl-dev)
sudo apt install pkg-config libsodium-dev libopus-dev openssl ffmpeg youtube-dl
Using Pip for youtube-dl is recomended.
sudo dnf install pkg-config libsodium-devel opus-devel compat-openssl10-devel ffmpeg youtube-dl
Using compat-openssl10-devel
instead of openssl-devel
package since Fedora is ahead in OpenSSL version and incompatible with Rust OpenSSL package.
ffmpeg
is only avaliable through RPMFusion.
sudo zypper install pkg-config libsodium-devel libopus-devel libopenssl-devel youtubedl ffmpeg
- Install Rust.
- Install the required dependencies.
- Either
git clone https://github.com/aarroz/rice_bot2.git
or download the zip and extract. - Use Cargo in the folder.
- Use
cargo build
to compile a debug version of the bot. - Use
cargo run DISCORD_TOKEN=<insert bot token>
to run the bot and connect it to the bot account.