mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-25 12:34:19 +00:00
21 lines
423 B
Rust
21 lines
423 B
Rust
use anyhow::{Result};
|
|
|
|
pub(crate) mod database;
|
|
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
|
|
}
|
|
|
|
Ok(())
|
|
}
|