Create labadoor binary crate calling each librarie's main()
This commit is contained in:
parent
3abf7106fc
commit
ed628b2ee3
6 changed files with 48 additions and 4 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue