https://github.com/thedarkcolour/music-bot-rs
https://github.com/thedarkcolour/music-bot-rs
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thedarkcolour/music-bot-rs
- Owner: thedarkcolour
- Created: 2022-07-05T23:13:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T23:14:33.000Z (about 3 years ago)
- Last Synced: 2025-01-27T19:19:27.995Z (6 months ago)
- Language: Rust
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## music-bot-rs ♡
Discord music bot written in Rust. Supports Spotify URLs, YouTube URLs, and YouTube search.
Requires the Python package `youtube-dl`, which can be installed using the following command:
```sh
pip install youtube-dl
```
Also requires FFmpeg to be installed and included somewhere in your system path.
To run, an example PowerShell script that sets the required environment variables is provided:
```ps1
# Discord Bot token from Discord Developer portal
$Env:DISCORD_TOKEN="...";
# Bot prefix
$Env:COMMAND_PREFIX="!";
# YouTube Data API Key created in Google Developer console
$Env:YOUTUBE_KEY="...";
# Client credentials from Spotify developer console
$Env:SPOTIFY_CLIENT_ID="...";
$Env:SPOTIFY_CLIENT_SECRET="...";
cargo watch -x run;
```