cracktunes
所属分类:自然语言处理
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-08-06 01:53:21
上 传 者:
sh-1993
说明: 一款无忧、高性能、自己托管的Discord音乐机器人,支持YouTube和Spotify。由yt dlp和crack.提供支持。,
(A hassle-free, highly performant, host-it-yourself Discord music bot with YouTube and Spotify support. Powered by yt-dlp and crack.,)
文件列表:
.build.yml (624, 2023-12-04)
.cargo/ (0, 2023-12-04)
.cargo/config (244, 2023-12-04)
.dockerignore (217, 2023-12-04)
.env.example (578, 2023-12-04)
.replit (376, 2023-12-04)
.sqlx/ (0, 2023-12-04)
.sqlx/query-0328176ec0c66942bf7c518fe10dd928cbe3fcb229c34e3d14b5e892822da4c7.json (1171, 2023-12-04)
.sqlx/query-04872c5cecb808147efa70fb9641e8fa3ce5fba5c3c4fe800107ec9ced4a9607.json (746, 2023-12-04)
.sqlx/query-367f14d3ad2292c75f631ced82a20374ab8951adbcefba99191c4b66f85acdae.json (334, 2023-12-04)
.sqlx/query-3716d76ac86a259f6d46cd124c9ad1604d2ff5cc188ec225969e8e7bcafb70aa.json (282, 2023-12-04)
.sqlx/query-407a4d7d65c287573a1cf901fb7eac60545578a721b6b895f53cdf6ad9ac01db.json (2211, 2023-12-04)
.sqlx/query-6271605442ea59a31007469fa837268ffec79b7754d876f08e766b91b6379257.json (315, 2023-12-04)
.sqlx/query-7ccdb068e97cf3455860f254e9a0b1cd3e3beec03b2aee3f36f8799185d1b70a.json (395, 2023-12-04)
.sqlx/query-80e3f443fed4347f2d6827417b2d02c8b460dc8d8b4aae8382c2fc1a733ebcab.json (780, 2023-12-04)
.sqlx/query-98e7c6e78533c7fe102403590d0c654b7db525ad56a46159c1ceeee4ba818fad.json (711, 2023-12-04)
.sqlx/query-b789de16a328b97800cf8530f51aed899c6a269e87da651946796f925c97144e.json (347, 2023-12-04)
.sqlx/query-ebab824a99d93b607fbe9964c0141cf90b26c9bd4bdbcc3ca7849a78461ece1c.json (771, 2023-12-04)
Cargo.lock (114883, 2023-12-04)
Cargo.toml (2144, 2023-12-04)
Dockerfile (1310, 2023-12-04)
LICENSE (1090, 2023-12-04)
compose.yml (321, 2023-12-04)
crack-config/ (0, 2023-12-04)
... ...
![CrackTunes](https://github.com/cycle-five/cracktunes/blob/master/./docs/logo.png)
A hassle-free, highly performant, host-it-yourself, cracking smoking Discord music bot
[![builds.sr.ht status](https://github.com/cycle-five/cracktunes/blob/master/https://builds.sr.ht/~cycle-five.svg)](https://github.com/cycle-five/cracktunes/blob/master/https://builds.sr.ht/~cycle-five?)
[![GitHub CI workflow status](https://github.com/cycle-five/cracktunes/blob/master/https://github.com/cycle-five/cracktunes/actions/workflows/ci_workflow.yml/badge.svg)](https://github.com/cycle-five/cracktunes/blob/master/https://github.com/cycle-five/cracktunes/actions/workflows/ci_workflow.yml)
[![Dependency status](https://github.com/cycle-five/cracktunes/blob/master/https://deps.rs/repo/github/cycle-five/cracktunes/status.svg)](https://github.com/cycle-five/cracktunes/blob/master/https://deps.rs/repo/github/cycle-five/cracktunes)
[![MIT License](https://github.com/cycle-five/cracktunes/blob/master/https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/cycle-five/cracktunes/blob/master/https://github.com/cycle-five/cracktunes/blob/main/LICENSE)
[![Rust Version](https://github.com/cycle-five/cracktunes/blob/master/https://img.shields.io/badge/rustc-1.72-blue.svg)](https://github.com/cycle-five/cracktunes/blob/master/https://github.com/cycle-five/cracktunes/)
## Deployment
### Usage
* Create a bot account
* Copy the **token** and **application id** to a `.env` with the `DISCORD_TOKEN` and `DISCORD_APP_ID` environment variables respectively.
* *Optional* define `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET` for Spotify support.
* *Optional* define `OPENAI_KEY` for chatgpt support.
* Use [.env.example](https://github.com/cycle-five/cracktunes/blob/master/https://github.com/cycle-five/cracktunes/blob/main/.env.example) as a starting point.
### Docker
```shell
docker run -d --env-file .env --restart unless-stopped --name cracktunes ghcr.io/cycle-five/cracktunes: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/cycle-five/cracktunes/blob/master/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://github.com/cycle-five/cracktunes/blob/master/https://ffmpeg.org/download.html), and install [yt-dlp](https://github.com/cycle-five/cracktunes/blob/master/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](https://github.com/cycle-five/cracktunes/blob/master/#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 cracktunes .
docker run -d --env-file .env cracktunes
```
### Roadmap
## 0.2.0
- [x] Play music from YouTube
- [x] Play music from Spotify (kind of...)
## 0.2.1 (2023/07/02)
- [x] Play music from local files
## 0.2.2 (2023/07/09 ish)
- [x] Welcome Actions
- [x] Play on multiple servers at once
## 0.2.3
- [x] Bug fixes (volume)
- [x] Shuttle support (still broken)
## 0.2.4 (2023/07/17)
- [x] Bug fixes.
- [x] Remove reliance on slash commands everywhere.
- [x] Remove shuttle for now
## 0.2.5
- ~~[] Shuttle~~
- ~~[] Reminders~~
- ~~[] Notes~~
## ~~0.2.6~~
Didn't really track stuff here...
## ~~0.2.12~~
## 0.2.13
- [] Port to next branch of serenity
- [] Flesh out admin commands
## 0.3.0
- [] Database Schema
...and more!
## 1.0.0
- [] RTChris' Demuxer in C++ (for fun)?
Originally forked from Parrot
近期下载者:
相关文件:
收藏者: