From ed59982e800e6dfef67dc9fcd0f45ced6b5e4930 Mon Sep 17 00:00:00 2001 From: kageru Date: Wed, 8 Jun 2022 17:43:21 +0200 Subject: [PATCH] More exceptions for spelling The neverending project --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b44dc60..cb9e891 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ lazy_static! { static ref MEME_CHANNEL: ChannelId = ChannelId(std::env::args().nth(2).unwrap().parse().unwrap()); static ref RETARD_REGEX: Regex = - Regex::new("(? Result<(), serenity:: if message.author.id == 261246789942902794 && RETARD_REGEX.is_match(&message.content).contains(&true) && !message.content.starts_with("a ") + && !message.content.starts_with("ja ") + && !message.content.starts_with("da ") { message.delete(&ctx).await?; let fixed = fix_spelling(&message.content);