From 4ca472471a786a0b1d0a86f6d90e84db8410779a Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Fri, 27 Jan 2023 14:27:17 -0500 Subject: [PATCH] Add prefix to ping command --- src/commands/slur.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/slur.rs b/src/commands/slur.rs index 385d480..0174687 100644 --- a/src/commands/slur.rs +++ b/src/commands/slur.rs @@ -7,7 +7,7 @@ use std::{ }; /// Basically a ping command -#[poise::command(slash_command)] +#[poise::command(slash_command, prefix_command)] pub(crate) async fn slur(ctx: Context<'_>) -> Result<(), Error> { let file = File::open("quotes.txt").unwrap_or_else(|_e| panic!("Quote file missing.")); // Open the quotes file let file = BufReader::new(file); // Read the quotes file