diff options
Diffstat (limited to 'src/commands/random_shiggy.rs')
| -rw-r--r-- | src/commands/random_shiggy.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/commands/random_shiggy.rs b/src/commands/random_shiggy.rs deleted file mode 100644 index e509a71..0000000 --- a/src/commands/random_shiggy.rs +++ /dev/null @@ -1,17 +0,0 @@ -use crate::api::shiggy::get_random_shiggy; -use crate::{Context, Error}; - -/// get a random shiggy -#[poise::command(prefix_command, slash_command)] -pub async fn random_shiggy(ctx: Context<'_>) -> Result<(), Error> { - match get_random_shiggy().await { - Ok(resp) => { - ctx.say(resp).await?; - Ok(()) - } - Err(why) => { - ctx.say("i can't get a shiggy right now :(").await?; - Err(why) - } - } -} |
