diff options
| author | Nathan Perry <avaglir@gmail.com> | 2019-03-15 07:54:16 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2019-03-15 07:54:16 -0400 |
| commit | 2685e6028dd775bcd618a3d8d2b22e32730454a3 (patch) | |
| tree | 4efdcaec04b789fbcddfce4c120e03a30993e61a /src/main.rs | |
| parent | c05ca6a38c90a83ef8421c153ba8ce840a23cbac (diff) | |
add reaction whenever playing audio and reaction to message failure
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
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); } |
