deadman 0.1.0

A deadman switch implemantation that will notify on Telegram if the user has not interacted with it in a specific interval
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use deadman::{init, init_db, start_server, tasks::start_jobs, telegram::start_bot};
use teloxide::Bot;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    init().await?;
    let pool = init_db().await?;
    let bot = Bot::from_env();
    start_jobs(bot.clone(), pool.clone()).await;
    start_bot(bot, pool.clone()).await?;
    start_server(pool).await?;

    Ok(())
}