A discord music bot written in rustlang
Find a file
ljoonal 626f78f731
All checks were successful
continuous-integration/drone/push Build is passing
Update changelog accordingly
2021-06-11 12:58:27 +03:00
.vscode More CI related changes 2021-06-05 03:17:18 +03:00
src Split up song playing code into separate functions 2021-06-11 12:58:16 +03:00
.dockerignore Initial commit 2021-06-02 23:44:58 +03:00
.drone.yml Fixed .zip command 2021-06-10 01:08:09 +03:00
.editorconfig Initial commit 2021-06-02 23:44:58 +03:00
.gitignore Initial commit 2021-06-02 23:44:58 +03:00
.rustfmt.toml Initial commit 2021-06-02 23:44:58 +03:00
Cargo.lock Split up song playing code into separate functions 2021-06-11 12:58:16 +03:00
Cargo.toml Split up song playing code into separate functions 2021-06-11 12:58:16 +03:00
CHANGELOG.md Update changelog accordingly 2021-06-11 12:58:27 +03:00
Dockerfile Fix an oopsie of youtube-dl not being in Docker 2021-06-11 09:18:18 +03:00
LICENSE License under AGPL 2021-06-03 00:58:37 +03:00
README.md More CI related changes 2021-06-05 03:17:18 +03:00

RustyToastDisc

A music focused discord bot built in rustlang using the serenity framework in search of good performance and low overhead. Quite simplistic at the moment, but also means that setup is quick and painless.

Installation

Build the executable yourself or grab a pre-built one from the releases, and add the following details to your environment with a .env file for example

SOURCE_CODE_URL=https://git.ljoonal.xyz/ljoonal/RustyDisc
DISCORD_TOKEN=long-text-here-from-discord-bot-token
DISCORD_CLIENT_ID=optional-numeric-id-for-echoing-inv-link
#RUST_LOG="ERROR,rustydisc=INFO"

Do note that the provided Dockerfile disables dotenv, since docker already includes flexible ways to define environment variables.

Developement

Install Rust along with cargo, and build & run the crate:

cargo run

Remember to at least modify the SOURCE_CODE_URL environment variable if you modify the source code to avoid being in breach with the AGPL license.

Attributions

This bot uses serenity, which is a Rust framework for discord bots. Go give it a star on github! It's ISC license can be found from the link as well.

Some very early prototyping was heavily inspired by MOXGII's Musicbot, so credit where credit is due.