Don't run command checks on each message starting with a prefix (#3718)

This commit is contained in:
jack1142
2020-04-24 18:12:25 +02:00
committed by GitHub
parent 0d6a7eb797
commit b1fe807b47
3 changed files with 31 additions and 18 deletions

View File

@@ -197,12 +197,9 @@ def init_events(bot, cli_flags):
help_settings = await HelpSettings.from_context(ctx)
fuzzy_commands = await fuzzy_command_search(
ctx,
commands={
c
async for c in RedHelpFormatter.help_filter_func(
ctx, bot.walk_commands(), help_settings=help_settings
)
},
commands=RedHelpFormatter.help_filter_func(
ctx, bot.walk_commands(), help_settings=help_settings
),
)
if not fuzzy_commands:
pass