diff options
| author | 2020-03-04 09:19:55 +0200 | |
|---|---|---|
| committer | 2020-03-04 09:19:55 +0200 | |
| commit | c5ec3e129cad08a3b67cc396e445d92bdfac560e (patch) | |
| tree | 28bd290bd49476848afaea9c61c41dcd753e3d57 /bot | |
| parent | (Games Cog): Fixed companies list generating code (.games <genre> command). (diff) | |
(Games Cog): Fixed get_games_list calling formatting at L192
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/seasons/evergreen/game.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py index b2114da8..7a7dc02f 100644 --- a/bot/seasons/evergreen/game.py +++ b/bot/seasons/evergreen/game.py @@ -189,8 +189,7 @@ class Games(Cog): # Offset must be random, due otherwise we will get always same result (offset show in which position should # API start returning result) try: - games = await self.get_games_list(amount, self.genres[genre], - offset=random.randint(0, 150)) + 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)) await ctx.send(f"Invalid genre `{genre}`. {f'Maybe you meant `{possibilities}`?' if possibilities else ''}") |