Frans Bergman 1d4a90da1f Add Command struct to formalize command organization | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
src | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
Cargo.lock | %!s(int64=4) %!d(string=hai) anos | |
Cargo.toml | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos |
A simple music bot that reads a FIFO to stream music to a Mumble server.
cargo build
First, configure a music player (e.g. MPD) to write to a FIFO:
mpd.conf
audio_output {
type "fifo"
name "FIFO-1"
path "/tmp/mpd.fifo"
format "48000:16:2"
mixer_type "software"
}
Then start the bot:
./mumble-bot-rs --host example.com --fifo-path /tmp/mpd.fifo
For additional options:
./mumble-bot-rs --help