Fluxer-Rust
A Rust written API Wrapper for the Discord alternative Fluxer.
Note: the crate is fluxer-rust but the library name is fluxer, so imports use use fluxer::prelude::*.
cargo add fluxer-rust
Usage
use *;
;
async
Voice
Requires ffmpeg. On Ubuntu/Debian you also need a few system packages:
sudo apt-get install -y pkg-config libglib2.0-dev libva-dev
let conn = ctx.join_voice.await?;
let handle = conn.play_music.await?;
handle.abort; // stop playback
ctx.leave_voice.await?;
Selfbot
To connect as a user account rather than a bot, pass .user_token() to the builder.
builder.user_token.event_handler.build
Self-hosted Instances
To use the API of a self-hosted instance rather than fluxer's API, pass .api_url("<API url>") to the builder.
builder.api_url.event_handler.build
Examples
cargo run --example bot # simple bot
cargo run --example voice # voice join/play/stop
cargo run --example event_logger # logs all gateway events
cargo run --example selfbot # user token selfbot
License
Apache-2.0
Donations
Paypal: paypal.me/vesaber
Monero: 46yingAoPTfECB2fXLQPiq9uwPezBQYjPhn3B4yScozaLiaiM4NpmRqS4MJ4Ja5gewJs5pLzV2RMV9USvwDNhQvbF6LExTU
Bitcoin: bc1q5wudz9xqctkswrzphjc48kt5hurkz63e74jece