summaryrefslogtreecommitdiff
path: root/src/commands/random.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-02 07:00:24 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit0025ad5ea8d412aacc3184d18063fd5ff3de0175 (patch)
tree1d2b5ac5c04a092756180722358d929feeae50aa /src/commands/random.rs
parentac32ec2a0ba37deb0ad82b4f2ee9c1e1b359cc88 (diff)
feat: add per guild configuration
Diffstat (limited to 'src/commands/random.rs')
-rw-r--r--src/commands/random.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/commands/random.rs b/src/commands/random.rs
deleted file mode 100644
index 9595d09..0000000
--- a/src/commands/random.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-use crate::{api, consts, utils, Context};
-
-use color_eyre::eyre::Result;
-
-#[poise::command(slash_command, subcommands("lore", "teawie", "shiggy"))]
-pub async fn random(_ctx: Context<'_>) -> Result<()> {
- Ok(())
-}
-
-/// get a random piece of teawie lore!
-#[poise::command(prefix_command, slash_command)]
-pub async fn lore(ctx: Context<'_>) -> Result<()> {
- let resp = utils::random_choice(consts::LORE)?;
- ctx.say(resp).await?;
- Ok(())
-}
-
-/// get a random teawie
-#[poise::command(prefix_command, slash_command)]
-pub async fn teawie(ctx: Context<'_>) -> Result<()> {
- let url = api::guzzle::get_random_teawie().await?;
- utils::send_url_as_embed(ctx, url).await
-}
-
-/// get a random shiggy
-#[poise::command(prefix_command, slash_command)]
-pub async fn shiggy(ctx: Context<'_>) -> Result<()> {
- let url = api::shiggy::get_random_shiggy().await?;
- utils::send_url_as_embed(ctx, url).await
-}