aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/help.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-08-23 02:06:27 -0700
committerGravatar GitHub <[email protected]>2021-08-23 02:06:27 -0700
commit1ee1f76581aa3549d65bf7dfbe38dfa55b1d4549 (patch)
tree73d1b3d2a2c82733b4e0ec642249b6a0f0f96d2e /bot/exts/evergreen/help.py
parentImprove overall code transparency in the Wikipedia Cog (diff)
parentMerge pull request #813 from python-discord/avatar-effects-fix (diff)
Merge branch 'main' into pr/wikipediaissue
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))