A Discord music bot powered by Python, FFmpeg, and yt-dlp.
-
Clone the repository using Git or download it as an archive:
git clone https://github.com/mal1kc/muscpy
-
Set up the
BOT_TOKEN
variable in the.env
file.
Example.env
file:DCBOT_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
you need to be have ffmpeg in PATH environment variable or where you run app
Run the bot from the directory where pyproject.toml
is located:
rye sync
rye run python -m muscpy
- Create a virtual environment:
virtualenv .venv
- Install dependencies:
- On Windows:
# Install dependencies .\.venv\Scripts\pip.exe install -r .\requirements.txt # Install muscpy .\.venv\Scripts\pip.exe install .
- On Linux:
# Install dependencies ./.venv/bin/pip install -r ./requirements.txt # Install muscpy ./.venv/bin/pip install .
- On Windows:
- Run the bot:
- For Windows:
.\.venv\Scripts\python.exe start_muscpy.py
- For Linux:
./.venv/bin/python start_muscpy.py
- For Windows:
- Durations may be in an incorrect format (can be overtime).
- Issues related to YouTube request limits (not planned to be fixed).
- Double join VC messages.
- Some unneeded messages.
- Some messages may be unclear.