Trying to rebuild Xiao-Xia with rust
- Music Bot
If you want to build your own bot, the bot is develop base on rust. rust is require for installation, ffmpeg for audio procession and yt-dlp for youtube video downloading. Here are the procedure to run Xiao-xia with rust locally.
-
Add personal discord token
Edit
.env_example
and rename the file to.env
-
Install ffmpeg
For Windows: tutorial
For Mac:
brew install ffmpeg
For Linux :
sudo apt-install ffmpeg
-
Install yt-dlp
You can use
pip install yt-dlp
if pip is installed otherwise -
Run
cargo check cargo run
-
Run with docker
docker build -t xiao-xia-rust . docker run -d xiao-xia-rust