aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs20
1 files changed, 13 insertions, 7 deletions
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,12 +17,12 @@ 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.",
@@ -30,6 +30,12 @@ async fn main() {
sed.log
),
matcher(
+ "nitter",
+ "replace twitter urls with a nitter instance (xcancel.com)",
+ r"https:\/\/(twitter|x)\.com\/",
+ catinator::hooks::nitter
+ ),
+ matcher(
"shifty_eyes",
">.>",
r"^\S{3}$",