aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/help.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-08-09 16:45:45 +0200
committerGravatar GitHub <[email protected]>2021-08-09 16:45:45 +0200
commit67caea1f737f86c2394cc9a280acbfe71588c917 (patch)
tree8c4da29580d176964679a1b73e46ffc8b5e64215 /bot/exts/evergreen/help.py
parentMerge #804 - circumvent URL injections in various cogs (diff)
parentMerge branch 'main' into remove-gpl-deps (diff)
Merge pull request #799 from python-discord/remove-gpl-deps
Remove gpl deps
Diffstat (limited to 'bot/exts/evergreen/help.py')
-rw-r--r--bot/exts/evergreen/help.py4
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))