aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: f442d35346b31b588729167a52d9daa8552eacf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[tokio::main]
async fn main() {
    use catinator::catinator;

    tracing_subscriber::fmt::init();

    let mut sed = catinator::hooks::sed::Sed::new();

    catinator![
        hook(
            "sasl",
            "Handle Authentication.",
            AUTHENTICATE,
            catinator::hooks::sasl
        ),
        async hook(
            "url_preview",
            "Send preview of website",
            PRIVMSG,
            catinator::hooks::url::url_preview
        )
    ];
}