From bbb945e3ce4ca791b6538dad5978515bca2d13ed Mon Sep 17 00:00:00 2001 From: R0flcopt3r Date: Tue, 5 Oct 2021 21:44:33 +0200 Subject: Adds url preview hook --- src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9ab7f6c..9af449e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,12 +2,7 @@ async fn main() { use catinator::catinator; - tracing_subscriber::fmt() - .compact() - .with_span_events(tracing_subscriber::fmt::format::FmtSpan::FULL) - .with_max_level(tracing::Level::DEBUG) - .with_thread_ids(true) - .init(); + tracing_subscriber::fmt::init(); let mut sed = catinator::hooks::sed::Sed::new(); @@ -24,6 +19,12 @@ async fn main() { PRIVMSG, sed.log ), + async hook( + "url_preview", + "Send preview of website", + PRIVMSG, + catinator::hooks::url::url_preview + ) matcher( "shifty_eyes", ">.>", -- cgit v1.2.3