discodo

Crates.iodiscodo
lib.rsdiscodo
version0.1.1
sourcesrc
created_at2021-04-07 06:15:56.825777
updated_at2021-04-07 06:38:34.728632
descriptionRust wrapper of Discodo
homepage
repositoryhttps://github.com/akiacode/discodo.rs
max_upload_size
id380227
size56,168
(AkiaCode)

documentation

https://docs.rs/discodo

README

discodo.rs

Rust wrapper of Discodo

Docs.rs

Example

#[tokio::main]
async fn main() {

    let framework = StandardFramework::new().configure(|c| c.prefix("/"));

    let mut client = Client::builder("TOKEN")
        .framework(framework)
        .register_discodo("127.0.0.1", None, None).await
        .await
        .expect("Error creating client");

    if let Err(why) = client.start().await {
        println!("Client error: {:?}", why);
    }
}
Commit count: 5

cargo fmt