diff --git a/src/bot/cmd/meme/ask.rs b/src/bot/cmd/meme/ask.rs new file mode 100644 index 0000000..42bc124 --- /dev/null +++ b/src/bot/cmd/meme/ask.rs @@ -0,0 +1,21 @@ +use serenity::{ + all::Message, + client::Context, + framework::standard::{macros::command, CommandResult}, +}; + +#[command] +#[description = "Info to ask for new meme"] +pub async fn ask(ctx: &Context, msg: &Message) -> CommandResult { + if let Err(why) = msg + .channel_id + .say( + &ctx.http, + "Hi, if you want to add new meme to the bot, you need to ask batleforc to add new one. You can do it by sending a message to him.", + ) + .await + { + println!("Error sending message: {:?}", why) + } + Ok(()) +} diff --git a/src/bot/cmd/meme/init.rs b/src/bot/cmd/meme/init.rs index 24cb7c1..217c5e2 100644 --- a/src/bot/cmd/meme/init.rs +++ b/src/bot/cmd/meme/init.rs @@ -1,4 +1,4 @@ -use super::{answer::ANSWER_COMMAND, enable::ENABLE_COMMAND}; +use super::{answer::ANSWER_COMMAND, ask::ASK_COMMAND, enable::ENABLE_COMMAND, list::LIST_COMMAND}; use serenity::all::standard::macros::group; // Include the meme commands @@ -10,6 +10,6 @@ use serenity::all::standard::macros::group; #[prefixes("meme", "m")] #[summary = "Meme related commands"] #[description = "Commands to handle the meme related stuffs, it allow you to enable/disable the meme answer or to trigger a one time meme answer."] -#[commands(enable, answer)] +#[commands(enable, answer, ask, list)] #[default_command(answer)] pub struct Meme; diff --git a/src/bot/cmd/meme/list.rs b/src/bot/cmd/meme/list.rs new file mode 100644 index 0000000..29228d4 --- /dev/null +++ b/src/bot/cmd/meme/list.rs @@ -0,0 +1,21 @@ +use serenity::{ + all::Message, + client::Context, + framework::standard::{macros::command, CommandResult}, +}; + +#[command] +#[description = "List supported meme keywords"] +pub async fn list(ctx: &Context, msg: &Message) -> CommandResult { + if let Err(why) = msg + .channel_id + .say( + &ctx.http, + "Soon TM - List of supported meme keywords will be available here.", + ) + .await + { + println!("Error sending message: {:?}", why) + } + Ok(()) +} diff --git a/src/bot/cmd/meme/mod.rs b/src/bot/cmd/meme/mod.rs index 5e019da..59905a0 100644 --- a/src/bot/cmd/meme/mod.rs +++ b/src/bot/cmd/meme/mod.rs @@ -1,3 +1,5 @@ pub mod answer; +pub mod ask; pub mod enable; pub mod init; +pub mod list;