2 releases
0.1.1 | Apr 7, 2021 |
---|---|
0.1.0 | Apr 7, 2021 |
#18 in #serenity
21KB
504 lines
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);
}
}
Dependencies
~11–24MB
~359K SLoC