MCPcopy Index your code
hub / github.com/aquelemiguel/parrot

github.com/aquelemiguel/parrot @v1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · + Follow
118 symbols 244 edges 42 files 2 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Light

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

Deployment

Usage

Just create a bot account, 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 as a starting point.

Docker

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 through Python's package manager, pip.

Linux

apt install build-essential autoconf automake libtool ffmpeg
pip install -U yt-dlp

MacOS

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, and install yt-dlp which can be done through Python's package manager, pip.

pip install -U yt-dlp

If you are using Windows Subsystem for Linux (WSL), you should follow the Linux/MacOS guide, and, in addition to the other required packages, install pkg-config, which you may do by running:

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:

docker build -t parrot .
docker run -d --env-file .env parrot

Extension points exported contracts — how you extend this code

Verifiable (Interface)
Types that implement this trait can be tested as true or false and also provide a way of unpacking themselves. [3 implementers]
src/errors.rs

Core symbols most depended-on inside this repo

verify
called by 23
src/errors.rs
create_response
called by 21
src/utils.rs
update_queue_messages
called by 17
src/handlers/track_end.rs
get_human_readable_timestamp
called by 8
src/utils.rs
enqueue_track
called by 8
src/commands/play.rs
edit_embed_response
called by 6
src/utils.rs
force_skip_top_track
called by 5
src/commands/skip.rs
insert_track
called by 5
src/commands/play.rs

Shape

Function 57
Method 41
Class 13
Enum 6
Interface 1

Languages

Rust100%

Modules by API surface

src/sources/youtube.rs11 symbols
src/utils.rs10 symbols
src/sources/spotify.rs10 symbols
src/guild/settings.rs10 symbols
src/handlers/serenity.rs9 symbols
src/commands/play.rs9 symbols
src/errors.rs8 symbols
src/commands/queue.rs7 symbols
src/handlers/track_end.rs4 symbols
src/client.rs4 symbols
src/test/errors.rs3 symbols
src/connection.rs3 symbols

For agents

$ claude mcp add parrot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact