aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorR0flcopt3r <eiriklavik@gmail.com>2021-10-05 21:44:33 +0200
committerR0flcopt3r <12752060+R0flcopt3r@users.noreply.github.com>2021-10-11 18:28:32 +0200
commitbbb945e3ce4ca791b6538dad5978515bca2d13ed (patch)
treeba2fdaf453a9f1f4602879273244f3cb006ecfd9 /src/main.rs
parentuse merge request pipelines (diff)
Adds url preview hook1-url-preview
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 7 insertions, 6 deletions
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",
">.>",