aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 1577c89..177f726 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -136,6 +136,10 @@ fn run() -> Result<()> {
trace!("command '{}' completed successfully", cmd);
},
Err(e) => {
+ if let Err(e) = msg.react("❌") {
+ error!("reacting to failed message: {}", e);
+ }
+
if let Err(e) = crate::commands::send(msg.channel_id, "BANIC", msg.tts) {
error!("sending BANIC: {}", e);
}