Prevent massive spam

This commit is contained in:
Daniel Odendahl Jr
2017-11-20 21:30:24 +00:00
parent 0983f202b5
commit 1efa71c863
+2
View File
@@ -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'));
}