Compare commits

..

No commits in common. "b0e0773d691333b98d18e81f31e454f45ee365e2" and "b47a9ed3d68d5b187379c2a70938591e068c246d" have entirely different histories.

6 changed files with 3 additions and 30 deletions

1
.gitignore vendored
View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
use crate::{Context, Error}; use crate::{Context, Error};
/// Returns a pong /// Displays your or another user's account creation date
#[poise::command(slash_command, prefix_command)] #[poise::command(slash_command, prefix_command)]
pub async fn ping(ctx: Context<'_>) -> Result<(), Error> { pub async fn ping(ctx: Context<'_>) -> Result<(), Error> {
let response = format!("pong {} !", ctx.author().display_name()); let response = format!("pong {} !", ctx.author().display_name());

View file

@ -2,7 +2,7 @@ use crate::{Context, Error};
use rand::prelude::*; 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)] #[poise::command(slash_command, prefix_command)]
pub async fn roll( pub async fn roll(
ctx: Context<'_>, ctx: Context<'_>,

View file

@ -13,11 +13,7 @@ async fn main() {
let framework = poise::Framework::builder() let framework = poise::Framework::builder()
.options(poise::FrameworkOptions { .options(poise::FrameworkOptions {
commands: vec![ commands: vec![commands::fun::ping::ping(), commands::fun::roll::roll()],
commands::fun::ping::ping(),
commands::fun::roll::roll(),
commands::fun::breakdance::breakdance(),
],
..Default::default() ..Default::default()
}) })
.setup(|ctx, _ready, framework| { .setup(|ctx, _ready, framework| {