Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thedarkcolour/music-bot-rs
https://github.com/thedarkcolour/music-bot-rs
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thedarkcolour/music-bot-rs
- Owner: thedarkcolour
- Created: 2022-07-05T23:13:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T23:14:33.000Z (over 2 years ago)
- Last Synced: 2023-03-05T22:59:03.613Z (over 1 year ago)
- Language: Rust
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- 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;
```