diff --git a/.gitignore b/.gitignore index fedaa2b..e3990da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target +/res .env diff --git a/src/commands/fun/breakdance.rs b/src/commands/fun/breakdance.rs new file mode 100644 index 0000000..7458d59 --- /dev/null +++ b/src/commands/fun/breakdance.rs @@ -0,0 +1,21 @@ +use poise::CreateReply; +use serenity::all::CreateAttachment; + +use crate::{Context, Error}; + +/// A bee will do a lil' breakdance +#[poise::command(slash_command, prefix_command)] +pub async fn breakdance(ctx: Context<'_>) -> Result<(), Error> { + let reply = CreateReply { + content: Some("Time to... BREAKDAAAAAAANCE".to_string()), + attachments: vec![ + CreateAttachment::path("./res/breakdance_bee.webm") + .await + .unwrap(), + ], + ..Default::default() + }; + + ctx.send(reply).await?; + Ok(()) +} diff --git a/src/commands/fun/mod.rs b/src/commands/fun/mod.rs index 567b8dc..d64cb74 100644 --- a/src/commands/fun/mod.rs +++ b/src/commands/fun/mod.rs @@ -1,2 +1,3 @@ +pub mod breakdance; pub mod ping; pub mod roll; diff --git a/src/main.rs b/src/main.rs index 65acc2c..edb3001 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,11 @@ async fn main() { let framework = poise::Framework::builder() .options(poise::FrameworkOptions { - commands: vec![commands::fun::ping::ping(), commands::fun::roll::roll()], + commands: vec![ + commands::fun::ping::ping(), + commands::fun::roll::roll(), + commands::fun::breakdance::breakdance(), + ], ..Default::default() }) .setup(|ctx, _ready, framework| {