smol bot
fix big problem
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | src/bot/mod.rs | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -22,7 +22,8 @@ serenity = { version = "0.12", features = [ poise = { git = "https://github.com/serenity-rs/poise", branch = "current" } anyhow = "1.0.75" regex = { version = "1.8.4", features = ["std"], default-features = false } -mindus = { version = "5.0.7", features = [], default-features = false } +mindus = { git = "https://github.com/bend-n/mindus", features = [ +], default-features = false } lemu = { features = [ "diagnose", ], default-features = false, git = "https://github.com/bend-n/mindus" } @@ -68,6 +69,7 @@ charts-rs = { version = "0.3.24", features = [ "image-encoder", "resvg", ] } +rustc-hash = "2.1.1" [features] server = ["axum"] diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 4934d8f..20f0a00 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -478,7 +478,6 @@ impl Bot { .. }, ..} => { if let Some((_, (hash, r))) = d.tracker.remove(id) { - _ = r.delete(c).await; let who = author .nick_in(c, guild_id) .await @@ -498,6 +497,7 @@ impl Bot { l ) .await? && ha != hash { + _ = r.delete(c).await; let (m, _, s) = schematic::send(m,c, v).await?; d.tracker.insert(*id, (ha, m)); if let Some(dir) = dir && let Some(git) = repo && git.has(dir, *id) { |