diff --git a/src/bot.rs b/src/bot.rs index e51ff2e..a7f4bad 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -78,6 +78,10 @@ impl anyhow::Result<()>> Bot { let content = content.trim(); if let Some((command, remainder)) = dissect(&self.prefixes, content) { tracing::debug!("Got command: {:?} -> {:?}", command, remainder); + if command.is_empty() { + tracing::debug!("Empty command, skipping..."); + return Ok(()); + } if let Some(handler) = self.commands.get(command) { let msg = Context { author,