Add breakdance and fix comments #3
4 changed files with 28 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
/target
|
/target
|
||||||
|
/res
|
||||||
.env
|
.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 ping;
|
||||||
pub mod roll;
|
pub mod roll;
|
||||||
|
|
|
||||||
|
|
@ -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| {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue