parrot

所属分类:自然语言处理
开发工具:Rust
文件大小:107KB
下载次数:0
上传日期:2023-04-11 01:23:54
上 传 者sh-1993
说明:  一款无忧、高性能、自己托管的Discord音乐机器人,支持YouTube和Spotify。由y提供支持...
(?? A hassle-free, highly performant, host-it-yourself Discord music bot with YouTube and Spotify support. Powered by yt-dlp.)

文件列表:
.dockerignore (129, 2023-08-19)
.env.example (362, 2023-08-19)
Cargo.lock (56847, 2023-08-19)
Cargo.toml (780, 2023-08-19)
Dockerfile (694, 2023-08-19)
LICENSE (1068, 2023-08-19)
docs (0, 2023-08-19)
docs\logo.png (46761, 2023-08-19)
src (0, 2023-08-19)
src\client.rs (1333, 2023-08-19)
src\commands (0, 2023-08-19)
src\commands\autopause.rs (984, 2023-08-19)
src\commands\clear.rs (1056, 2023-08-19)
src\commands\leave.rs (571, 2023-08-19)
src\commands\manage_sources.rs (4110, 2023-08-19)
src\commands\mod.rs (296, 2023-08-19)
src\commands\now_playing.rs (778, 2023-08-19)
src\commands\pause.rs (796, 2023-08-19)
src\commands\play.rs (16266, 2023-08-19)
src\commands\queue.rs (7352, 2023-08-19)
src\commands\remove.rs (2752, 2023-08-19)
src\commands\repeat.rs (1231, 2023-08-19)
src\commands\resume.rs (805, 2023-08-19)
src\commands\seek.rs (1584, 2023-08-19)
src\commands\shuffle.rs (1355, 2023-08-19)
... ...

Light

A hassle-free, highly performant, host-it-yourself Discord music bot

## Deployment ### Usage Just [create a bot account](https://github.com/aquelemiguel/parrot/wiki/Create-Your-Discord-Bot), and copy its **token** and **application id** to a `.env` with the `DISCORD_TOKEN` and `DISCORD_APP_ID` environment variables respectively. Optionally, you may also define `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET`. We recommend using our [.env.example](https://github.com/aquelemiguel/parrot/blob/main/.env.example) as a starting point. ### Docker ```shell docker run -d --env-file .env --restart unless-stopped --name parrot ghcr.io/aquelemiguel/parrot:latest ``` ## Development Make sure you've installed Rust. You can install Rust and its package manager, `cargo` by following the instructions on https://rustup.rs/. After installing the requirements below, simply run `cargo run`. ### Linux/MacOS The commands below install a C compiler, GNU autotools and FFmpeg, as well as [yt-dlp](https://github.com/yt-dlp/yt-dlp) through Python's package manager, pip. #### Linux ```shell apt install build-essential autoconf automake libtool ffmpeg pip install -U yt-dlp ``` #### MacOS ```shell brew install autoconf automake libtool ffmpeg pip install -U yt-dlp ``` ### Windows If you are using the MSVC toolchain, a prebuilt DLL for Opus is already provided for you. You will only need to download [FFmpeg](https://ffmpeg.org/download.html), and install [yt-dlp](https://github.com/yt-dlp/yt-dlp) which can be done through Python's package manager, pip. ```shell pip install -U yt-dlp ``` If you are using Windows Subsystem for Linux (WSL), you should follow the [Linux/MacOS](#linuxmacos) guide, and, in addition to the other required packages, install pkg-config, which you may do by running: ```shell apt install pkg-config ``` ## Testing Tests are available inside the `src/tests` folder. They can be run via `cargo test`. It's recommended that you run the tests before submitting your Pull Request. Increasing the test coverage is also welcome. ### Docker Within the project folder, simply run the following: ```shell docker build -t parrot . docker run -d --env-file .env parrot ```

近期下载者

相关文件


收藏者