diff --git a/src/bot.rs b/src/bot.rs index 1ab4800..89c9f77 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -189,6 +189,7 @@ impl DiceBot { let commands: Vec<&str> = msg_body .lines() .filter(|line| line.starts_with("!")) + .take(MAX_COMMANDS_PER_MESSAGE + 1) .collect(); //Up to 50 commands allowed, otherwise we send back an error.