summaryrefslogtreecommitdiff
path: root/src/commands/random_lore.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-15 23:54:05 -0500
committerseth <[email protected]>2023-11-16 05:41:54 +0000
commit387b7dee5c022dab74bd7afc920b58793b8308de (patch)
treecef0287106ba6e095b092db8d752395a9341f879 /src/commands/random_lore.rs
parentfe9bcd7dc1833d5ba5ad75a84794217d8d840d56 (diff)
refactor: merge all random commands
Diffstat (limited to 'src/commands/random_lore.rs')
-rw-r--r--src/commands/random_lore.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/commands/random_lore.rs b/src/commands/random_lore.rs
deleted file mode 100644
index 875a35e..0000000
--- a/src/commands/random_lore.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-use crate::{consts, utils, Context, Error};
-
-/// get a random piece of teawie lore!
-#[poise::command(prefix_command, slash_command)]
-pub async fn random_lore(ctx: Context<'_>) -> Result<(), Error> {
- match utils::random_choice(consts::LORE) {
- Ok(resp) => {
- ctx.say(resp).await?;
- Ok(())
- }
- Err(why) => {
- ctx.say("i can't think of any right now :(").await?;
- Err(why)
- }
- }
-}