diff --git a/src/main.rs b/src/main.rs index d8b10bf..0d1834d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,11 @@ async fn main() -> Result<(), Error> { prefix: None, additional_prefixes: BOT_PREFIXES .iter() - .map(|p| poise::Prefix::Literal(p)) + .map(|p| { + poise::Prefix::Regex( + RegexBuilder::new(p).case_insensitive(true).build().unwrap(), + ) + }) .collect::>(), mention_as_prefix: true, case_insensitive_commands: true, diff --git a/src/prelude.rs b/src/prelude.rs index 69bbb30..3b6b3b5 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -80,4 +80,4 @@ pub use sqlx::{ pub use lazy_static::lazy_static; pub use rand::prelude::*; pub use rayon::prelude::*; -pub use regex::Regex; +pub use regex::{Regex, RegexBuilder};