aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Karlis S <[email protected]>2020-03-04 19:04:50 +0200
committerGravatar GitHub <[email protected]>2020-03-04 19:04:50 +0200
commit6c1ce462cc8594c224cc8fe78e36557a6be44b9c (patch)
tree040a1719f128302fffff7d8f8f8dda75ec6383f7 /bot
parent(Games Cog): Moved `string.Template` to `str.format()`, applied changes every... (diff)
(Games Cog): Added space between game search result + removed cutoff in get_close_matches.
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/evergreen/game.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py
index bb48123d..e6700937 100644
--- a/bot/seasons/evergreen/game.py
+++ b/bot/seasons/evergreen/game.py
@@ -72,7 +72,7 @@ COMPANY_PAGE = (
# For .games search command line layout
GAME_SEARCH_LINE = (
"**[{name}]({url})**\n"
- "{rating}/100 :star: (based on {rating_count} ratings)"
+ "{rating}/100 :star: (based on {rating_count} ratings)\n"
)
# URL templates
@@ -194,7 +194,7 @@ class Games(Cog):
try:
games = await self.get_games_list(amount, self.genres[genre], offset=random.randint(0, 150))
except KeyError:
- possibilities = "`, `".join(difflib.get_close_matches(genre, self.genres, cutoff=0.4))
+ possibilities = "`, `".join(difflib.get_close_matches(genre, self.genres))
await ctx.send(f"Invalid genre `{genre}`. {f'Maybe you meant `{possibilities}`?' if possibilities else ''}")
return