mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Prevent massive spam
This commit is contained in:
@@ -36,6 +36,8 @@ module.exports = class HelpCommand extends Command {
|
|||||||
**Aliases**: ${data.aliases.join(', ') || 'None'}
|
**Aliases**: ${data.aliases.join(', ') || 'None'}
|
||||||
**Group**: ${data.group.name} (\`${data.groupID}:${data.memberName}\`)
|
**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) {
|
} else if (commands.length > 1) {
|
||||||
return msg.say(disambiguation(commands, 'commands'));
|
return msg.say(disambiguation(commands, 'commands'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user