forked from projectmoon/tenebrous-dicebot
get everything working and slightly documented
This commit is contained in:
parent
8e50218c03
commit
6cb88a566c
|
@ -15,7 +15,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let mut sigint = signal(SignalKind::interrupt())?;
|
||||
|
||||
loop {
|
||||
println!("Loop");
|
||||
select! {
|
||||
_ = sigint.recv() => {
|
||||
break;
|
||||
|
|
|
@ -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<String>,
|
||||
|
||||
/// 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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue