From 6cb88a566ca314ba53fd9f973a2aa59178309641 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Tue, 21 Apr 2020 22:30:00 -0600 Subject: [PATCH] get everything working and slightly documented --- src/bin/dicebot.rs | 1 - src/bot.rs | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/dicebot.rs b/src/bin/dicebot.rs index 96c6d54..9c27f67 100644 --- a/src/bin/dicebot.rs +++ b/src/bin/dicebot.rs @@ -15,7 +15,6 @@ async fn main() -> Result<(), Box> { let mut sigint = signal(SignalKind::interrupt())?; loop { - println!("Loop"); select! { _ = sigint.recv() => { break; diff --git a/src/bot.rs b/src/bot.rs index bad9ce4..9430fb2 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -15,9 +15,15 @@ pub struct MatrixConfig { pub home_server: String, /// The next batch to grab. This should be set automatically + #[serde(default)] pub next_batch: Option, + + /// The transaction ID. This should be set automatically #[serde(default)] pub txn_id: u64, + + /// The login table. This may be set to whatever you wish, depending on your login method, + /// though multi-step logins (like challenge-based) won't work here. pub login: toml::Value, }