blob: a9faa7815d494aea414178343d73c98a6f566e7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#[tokio::main]
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();
let mut sed = catinator::hooks::sed::Sed::new();
catinator![
hook(
"sasl",
"Handle Authentication.",
AUTHENTICATE,
catinator::hooks::sasl
),
hook(
"url_preview",
"Send preview of website",
PRIVMSG,
catinator::hooks::url::url_preview
)
];
}
|