Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created January 25, 2018 03:28
Show Gist options
  • Save mattdeboard/9d8265e27a2a2ea6e81d36b032144a7f to your computer and use it in GitHub Desktop.
Save mattdeboard/9d8265e27a2a2ea6e81d36b032144a7f to your computer and use it in GitHub Desktop.
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