add more useufl logging statements

This commit is contained in:
Eric S. Londres 2021-03-28 05:25:18 -04:00
parent d9e6023a5c
commit 9f5b939391
Signed by: slondr
GPG Key ID: A2D25B4D5CB970E4
2 changed files with 4 additions and 3 deletions

4
Cargo.lock generated
View File

@ -1364,9 +1364,9 @@ dependencies = [
[[package]]
name = "telegram-markov-chain"
version = "0.1.0"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ce8c4304ad395bdb72c1a458e3f9ef7990030743c914b3618f169b1e2beaf80"
checksum = "467f29b7980233e9d6b3c40ad6832a9b8a2b56fff928c8c712a97300765de33d"
dependencies = [
"json",
"markov",

View File

@ -187,8 +187,9 @@ async fn answer(cx: UpdateWithCx<AutoSend<Bot>, Message>, command: Command) -> R
}
},
Command::Post => {
log::info!("Posting newm essage");
log::info!("Generating new message");
let new_msg = telegram_markov_chain::chain();
log::info!("Posting new message");
cx.reply_to(new_msg).await?
}
};