diff options
| author | 2021-08-17 08:45:19 -0500 | |
|---|---|---|
| committer | 2021-08-17 08:45:19 -0500 | |
| commit | e098273a3ddd3afd8b254aad439b08fc380ff40e (patch) | |
| tree | 21e57bd813ffd5cc05aee3844cb6b362f10d6a0e /bot/exts/evergreen/help.py | |
| parent | Removed a massive it block (diff) | |
| parent | Merge pull request #792 from python-discord/more-py-topics (diff) | |
Merge branch 'main' into main
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/help.py b/bot/exts/evergreen/help.py index 3c9ba4d2..bfb5db17 100644 --- a/bot/exts/evergreen/help.py +++ b/bot/exts/evergreen/help.py @@ -8,7 +8,7 @@ from typing import List, NamedTuple, Union from discord import Colour, Embed, HTTPException, Message, Reaction, User from discord.ext import commands from discord.ext.commands import CheckFailure, Cog as DiscordCog, Command, Context -from fuzzywuzzy import fuzz, process +from rapidfuzz import process from bot import constants from bot.bot import Bot @@ -159,7 +159,7 @@ class HelpSession: # Combine command and cog names choices = list(self._bot.all_commands) + list(self._bot.cogs) - result = process.extractBests(query, choices, scorer=fuzz.ratio, score_cutoff=90) + result = process.extract(query, choices, score_cutoff=90) raise HelpQueryNotFound(f'Query "{query}" not found.', dict(result)) |