smol bot
Diffstat (limited to 'src/bot/mod.rs')
-rw-r--r--src/bot/mod.rs2
1 files changed, 1 insertions, 1 deletions
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) {