Productivity bot for Discord
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

11 lines
261B

  1. extern crate serenity;
  2. use serenity::{
  3. model::channel::Message,
  4. prelude::*,
  5. };
  6. pub trait Command: std::marker::Sync + std::marker::Send {
  7. fn execute(&self, ctx: &Context, msg: &Message);
  8. fn valid(&self, ctx: &Context, msg: &Message) -> bool;
  9. }