feat: breakdance time
This commit is contained in:
parent
b47a9ed3d6
commit
f244305ef1
4 changed files with 28 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
/res
|
||||
.env
|
||||
|
|
|
|||
21
src/commands/fun/breakdance.rs
Normal file
21
src/commands/fun/breakdance.rs
Normal 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(())
|
||||
}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
pub mod breakdance;
|
||||
pub mod ping;
|
||||
pub mod roll;
|
||||
|
|
|
|||
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue