diff --git a/.gitignore b/.gitignore index e3990da..fedaa2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ /target -/res .env diff --git a/src/commands/fun/breakdance.rs b/src/commands/fun/breakdance.rs deleted file mode 100644 index 7458d59..0000000 --- a/src/commands/fun/breakdance.rs +++ /dev/null @@ -1,21 +0,0 @@ -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 d64cb74..567b8dc 100644 --- a/src/commands/fun/mod.rs +++ b/src/commands/fun/mod.rs @@ -1,3 +1,2 @@ -pub mod breakdance; pub mod ping; pub mod roll; diff --git a/src/commands/fun/ping.rs b/src/commands/fun/ping.rs index f28f58e..df56db6 100644 --- a/src/commands/fun/ping.rs +++ b/src/commands/fun/ping.rs @@ -1,6 +1,6 @@ use crate::{Context, Error}; -/// Returns a pong +/// Displays your or another user's account creation date #[poise::command(slash_command, prefix_command)] pub async fn ping(ctx: Context<'_>) -> Result<(), Error> { let response = format!("pong {} !", ctx.author().display_name()); diff --git a/src/commands/fun/roll.rs b/src/commands/fun/roll.rs index 8a5760e..fbdf8bb 100644 --- a/src/commands/fun/roll.rs +++ b/src/commands/fun/roll.rs @@ -2,7 +2,7 @@ use crate::{Context, Error}; use rand::prelude::*; -/// Will throw a dice of x faces +/// Displays your or another user's account creation date #[poise::command(slash_command, prefix_command)] pub async fn roll( ctx: Context<'_>, diff --git a/src/main.rs b/src/main.rs index edb3001..65acc2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,11 +13,7 @@ async fn main() { let framework = poise::Framework::builder() .options(poise::FrameworkOptions { - commands: vec![ - commands::fun::ping::ping(), - commands::fun::roll::roll(), - commands::fun::breakdance::breakdance(), - ], + commands: vec![commands::fun::ping::ping(), commands::fun::roll::roll()], ..Default::default() }) .setup(|ctx, _ready, framework| {