starting other commands

This commit is contained in:
jude
2020-08-18 20:09:21 +01:00
parent d95652a605
commit e69264d726
8 changed files with 91 additions and 0 deletions

View File

@ -1,3 +1,4 @@
pub mod info_cmds;
pub mod reminder_cmds;
pub mod todo_cmds;
pub mod moderation_cmds;

View File

@ -0,0 +1,25 @@
use regex_command_attr::command;
use serenity::{
client::Context,
model::{
channel::{
Message,
},
},
framework::standard::CommandResult,
};
use crate::SQLPool;
#[command]
#[supports_dm(false)]
#[permission_level(Restricted)]
async fn blacklist(ctx: &Context, msg: &Message, args: String) -> CommandResult {
let pool = ctx.data.read().await
.get::<SQLPool>().cloned().expect("Could not get SQLPool from data");
if
Ok(())
}

View File

@ -179,6 +179,7 @@ enum SubCommand {
}
#[command]
#[permission_level(Managed)]
async fn todo_parse(ctx: &Context, msg: &Message, args: String) -> CommandResult {
let mut split = args.split(" ");