Skip to content

OuYangMinOa/OuYangMinOa-Xiao-Xia-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bot logo

Xiao-Xia with rust

🧐 About

Trying to rebuild Xiao-Xia with rust

Progress

  1. Music Bot

🚀 Deploying your own 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.

  1. Add personal discord token

    Edit .env_example and rename the file to .env

  2. Install ffmpeg

    For Windows: tutorial

    For Mac: brew install ffmpeg

    For Linux : sudo apt-install ffmpeg

  3. Install yt-dlp

    You can use pip install yt-dlp if pip is installed otherwise

  4. Run

    cargo check
    cargo run
    
  5. Run with docker

    docker build -t xiao-xia-rust .
    docker run -d xiao-xia-rust