Crates.io | discodo |
lib.rs | discodo |
version | 0.1.1 |
source | src |
created_at | 2021-04-07 06:15:56.825777 |
updated_at | 2021-04-07 06:38:34.728632 |
description | Rust wrapper of Discodo |
homepage | |
repository | https://github.com/akiacode/discodo.rs |
max_upload_size | |
id | 380227 |
size | 56,168 |
Rust wrapper of Discodo
#[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);
}
}