From 1efa71c8633748626e6ee4b3113b71a3f2040a07 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 20 Nov 2017 21:30:24 +0000 Subject: [PATCH] Prevent massive spam --- commands/util/help.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/util/help.js b/commands/util/help.js index 6abb215f..62d8d0d0 100644 --- a/commands/util/help.js +++ b/commands/util/help.js @@ -36,6 +36,8 @@ module.exports = class HelpCommand extends Command { **Aliases**: ${data.aliases.join(', ') || 'None'} **Group**: ${data.group.name} (\`${data.groupID}:${data.memberName}\`) `); + } else if (commands.length <= 15) { + return msg.say('Multiple commands found. Please be more specific.'); } else if (commands.length > 1) { return msg.say(disambiguation(commands, 'commands')); }