|
||
---|---|---|
.vscode | ||
src | ||
.dockerignore | ||
.drone.yml | ||
.editorconfig | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.lock | ||
Cargo.toml | ||
CHANGELOG.md | ||
Dockerfile | ||
LICENSE | ||
README.md |
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.