Create labadoor binary crate calling each librarie's main()

This commit is contained in:
George Kaklamanos 2023-06-30 17:12:24 +03:00
parent 3abf7106fc
commit ed628b2ee3
6 changed files with 48 additions and 4 deletions

View file

@ -43,7 +43,7 @@ async fn answer(
}
#[tokio::main]
async fn main() {
pub async fn main() {
teloxide::enable_logging!();
log::info!("Starting labadoor Telegram bot...");
let token = std::env::var("TELEGRAM_TOKEN").expect("TELEGRAM_TOKEN not set");