feat: breakdance time

This commit is contained in:
Alzalia 2025-08-31 17:12:24 +02:00
parent b47a9ed3d6
commit f244305ef1
4 changed files with 28 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target /target
/res
.env .env

View file

@ -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(())
}

View file

@ -1,2 +1,3 @@
pub mod breakdance;
pub mod ping; pub mod ping;
pub mod roll; pub mod roll;

View file

@ -13,7 +13,11 @@ async fn main() {
let framework = poise::Framework::builder() let framework = poise::Framework::builder()
.options(poise::FrameworkOptions { .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() ..Default::default()
}) })
.setup(|ctx, _ready, framework| { .setup(|ctx, _ready, framework| {