1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-29 06:24:20 +00:00
royalnet/src/main.rs

22 lines
423 B
Rust
Raw Normal View History

2024-07-05 00:06:47 +00:00
use anyhow::{Result};
2024-07-04 01:15:39 +00:00
pub(crate) mod database;
2024-07-04 01:15:39 +00:00
mod telegram;
#[tokio::main]
async fn main() -> Result<()> {
// Logging setup
{
pretty_env_logger::init();
log::info!("Logging initialized successfully!");
}
// Telegram setup
{
log::trace!("Setting up Telegram bot...");
let mut dispatcher = telegram::dispatcher();
dispatcher.dispatch().await
}
2024-07-04 01:15:39 +00:00
Ok(())
}