Created
January 25, 2018 03:28
-
-
Save mattdeboard/9d8265e27a2a2ea6e81d36b032144a7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.with_framework( | |
StandardFramework::new() | |
.configure(|c| c | |
.owners(owners) | |
.prefix("~")) | |
.command("add", |c| c | |
.cmd(commands::add::add) | |
// .after(|ctx, msg, error| { | |
// let data = ctx.data.lock(); | |
// match data.get::<models::draft_pool::DraftPool>() { | |
// Some(draft_pool) => if MAX_QUEUE_SIZE == draft_pool.members.len() { | |
// panic!("We maxed out our queue size!") | |
// }, | |
// None => () | |
// } | |
// }) | |
.batch_known_as(vec!["a"]) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment