From cdece050ff66db48021c3d4010d252b459dcb762 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 17 Dec 2025 23:55:02 +0100 Subject: add twitter cancel feature yeah nitter --- src/main.rs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e4c65d0..f180ea3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ async fn main() { tracing_subscriber::fmt() .with_max_level(tracing::Level::TRACE) - // .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) .init(); rustls::crypto::CryptoProvider::install_default(rustls::crypto::aws_lc_rs::default_provider()) @@ -17,18 +17,24 @@ async fn main() { .expect("failed to initialize WolframAlpha command"); catinator![ - hook( - "sasl", - "Handle Authentication.", - AUTHENTICATE, - catinator::hooks::sasl - ), + // hook( + // "sasl", + // "Handle Authentication.", + // AUTHENTICATE, + // catinator::hooks::sasl + // ), hook( "sed_log", "Log messages for use with sed replace, max 10k lines.", PRIVMSG, sed.log ), + matcher( + "nitter", + "replace twitter urls with a nitter instance (xcancel.com)", + r"https:\/\/(twitter|x)\.com\/", + catinator::hooks::nitter + ), matcher( "shifty_eyes", ">.>", -- cgit v1.2.3