From 2685e6028dd775bcd618a3d8d2b22e32730454a3 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 15 Mar 2019 07:54:16 -0400 Subject: add reaction whenever playing audio and reaction to message failure --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.rs') 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); } -- cgit v1.3.1